[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XHTML to XHTML transform

Subject: RE: XHTML to XHTML transform
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Sat, 3 Apr 2004 00:18:41 +0200
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.