Subject: Re: [xsl] Creating a cdata section using xsl From: Arnaud Vandyck <arnaud@xxxxxxxxxxxxxxxxx> Date: Tue, 27 Feb 2001 16:49:57 +0100 (CET) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Creating a cdata section , David Carlisle | Thread | RE: [xsl] Creating a cdata section , Ben Robb |
RE: [xsl] Can I access the children, Daniel Newman | Date | Re: [xsl] Creating a cdata section , Francis Norton |
Month |