This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Namespaces and For-each
- To: "XSL List" <xsl-list at mulberrytech dot com>
- Subject: Namespaces and For-each
- From: "Mike Ball" <Mike dot Ball at softwareag dot co dot uk>
- Date: Thu, 24 Feb 2000 16:57:04 -0000
- Reply-To: xsl-list at mulberrytech dot com
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