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

Namespaces and For-each

Subject: Namespaces and For-each
From: "Mike Ball" <Mike.Ball@xxxxxxxxxxxxxxxx>
Date: Thu, 24 Feb 2000 16:57:04 -0000
xsl for each with namespaces
Hello all

I am trying to transform a document which uses several namespace prefixes.
Something like:-

<pr1:element1>
  <pr2:element2>
     <my-element>

etc

I have a template which matches "/" and within that I'm trying to do
<xsl:for-each select="//my-element">

This never selects any elements. In contrast, if I have a series of
templates matching "/", "*" and "my-element" with each of the doing an
apply-templates, I *do* select the "my-element".

Can anyone tell me if this is to be expected? If so, why?

I'm using lotusxsl_0_19_2 (which is Xalan internally I believe).

Thanks in advance

Mike Ball

Consultant
Software AG UK


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


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.