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

RE: few question regarding the use of id generation

Subject: RE: few question regarding the use of id generation
From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Feb 2002 18:00:45 -0000
use of id est
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@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Joerg
Heinicke
Sent: Tuesday, February 05, 2002 5:21 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  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@xxxxxxxxx
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


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.