[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Michael Kay" <mike@s...>
  • To: "'Mukul Gandhi'" <gandhi.mukul@g...>,"'http://www.pas-world.com'" <dev001@p...>
  • Date: Sun, 25 Nov 2007 10:26:03 -0000

> 
> Alternate is to wrap this fragment in a variable (as follows):
> 
> <xsl:variable name="rtf">
> <nodexhtml>
>    <html><h1>Hello</h1></html>
> </nodexhtml>
> </xsl:variable>
> 
> Then you can output this fragment from elsewhere in the stylesheet as:
> 
> 1)
> <xsl:copy-of select="$rtf/nodexhtml/*" /> (in XSLT 2.0)
> 

Actually that works in 1.0 as well. XSLT 1.0 allows two operations on a
result tree fragment: copying, and conversion to a string.

Michael Kay
http://www.saxonica.com/



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member