This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: few question regarding the use of id generation
- From: "Andrew Welch" <andrew at thebristoldirectory dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 5 Feb 2002 18:00:45 -0000
- Subject: RE: [xsl] few question regarding the use of id generation
- Reply-to: xsl-list at lists dot mulberrytech dot com
Yes, my apologies.
That should have read:
<xsl:template match="results[.//c='2']">
Well spotted Joerg, -1 for me not checking :)
andrew
===
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Joerg
Heinicke
Sent: Tuesday, February 05, 2002 5:21 PM
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] few question regarding the use of id generation
> If c were a child/descendant of results then:
>
> <xsl:template match="results[//c='2']">
This can really go wrong!! With '//c' all results in the file are
matched, if any c in the file has the value '2'. Change it to
'descendant::c' or './/c' if you want descendant <c>s. '//c' means
descendants of root node.
I hope I'm not wrong.
Regards,
Joerg
--
System Development
VIRBUS AG
Fon +49(0)341-979-7411
Fax +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list