[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XHTML to XHTML transform
> -----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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|