RE: [xsl] HOW XSLT WILL BE, WHEN XML2XML TRANSFORMATION

Subject: RE: [xsl] HOW XSLT WILL BE, WHEN XML2XML TRANSFORMATION
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 5 Dec 2004 21:28:42 -0000
> > <xsl:template match="para/text()">
> > <p><xsl:apply-templates/></p>
> > </xsl:template>
> 
> IMHO, this template doesn't work. text() has no children to 
> use xsl:apply-templates, but the real
> problem is that you don't do anything with the string value 
> of the node.

Yes. It should have said

<p><xsl:value-of select="."/></p>

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

Current Thread