xsl-list
[Top] [All Lists]

RE: HOW XSLT WILL BE, WHEN XML2XML TRANSFORMATION

2004-12-05 14:28:42
<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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>