xsl-list
[Top] [All Lists]

RE: XHTML to XHTML transform

2004-04-02 15:18:41
-----Original Message-----
From: Jeffrey Moss [mailto:jeff(_at_)opendbms(_dot_)com]

How do I match text nodes in my custom namespace? As in override
the default text node template for "mynamespace"?

All my variables <mynamespace:name>blah</mynamespace:name> for instance
appear as text in the results, I've tried this:

<xsl:template match="text()[namespace-uri()='mynamespace:namespace']">
</xsl:template>


Hmm.. IIC, text nodes themselves do not have a namespace-uri, but their
parent nodes do, so try this:

<xsl:template match="text()[parent::*[namespace-uri()='...']]">


Hope this helps!

Cheers,

Andreas



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