[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] XHTML to XHTML transform

Subject: RE: [xsl] XHTML to XHTML transform
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Sat, 3 Apr 2004 00:18:41 +0200

> -----Original Message-----
> From: Jeffrey Moss [mailto:jeff@xxxxxxxxxxxx]
> 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!



Current Thread