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

RE: Answers to review questions in "Beginning XSLT": C

Subject: RE: Answers to review questions in "Beginning XSLT": Chapter 8
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Wed, 19 Mar 2003 13:43:36 -0600
RE:  Answers to review questions in "Beginning XSLT": C
Americo wrote:
> so, the new templates could be the normal identity template:
> <xsl:template match="@* | node()">
>  <xsl:copy>
>   <xsl:apply-templates select="@* | node()"/>
>  </xsl:copy>
> </xsl:template>
> But this rases another question that has been bugging me for awaile, how
> can I match ANY element of no namespace?
> If I do <xsl:template match="*"> I'll match any node even those with a
> namespace
> The one I remember to solve this is a generic <xsl:template match="*">
> and several <xsl:template match="x:*" xmlns:x="..."/> one for each
> namespace definition that I want to skip
> Is there any other way of doing this???

How about <xsl:template match="*[namespace-uri()='']"> ?


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.