Subject: RE: 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!
Cheers,
Andreas
| Current Thread |
|
Robert Koberg - Fri, 2 Apr 2004 13:52:26 -0500 (EST)
|
|