[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Creating a cdata section using xsl
On Tue, 27 Feb 2001, David Carlisle wrote: > > For example, given the source document: > > <person> > <name>John Doe</name> > </person> > > <xsl:template match="/"> > <doc> > <display> > <xsl:apply-templates/> > </display> > </doc> > </xsl:template> > > <xsl:template match="person"> > <html> > <xsl:apply-templates/> > </html> > </xsl:template> > > <xsl:template match="name"> > <body> > <xsl:apply-templates/> > </body> > </xsl:template> Why don't you use the <xsl:element> tag? <xsl:template match="person"> <xsl:element name="html"> <xsl:apply-templates/> </xsl:element> </xsl:template> -- Arnaud XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|