XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] Including unparsed xml (xhtml code) code in xslt output.

> 
> 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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS