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

Re[4]: finding position() of an element in a different

Subject: Re[4]: finding position() of an element in a different context
From: Kevin Burges <xmldude@xxxxxxxxxxxxxxxx>
Date: Wed, 2 May 2001 16:57:06 +0100
xsl sort different context
Sorry for not getting back to this earlier, I've been away for a fe
days...

>> Am I not right in saying that if I am in the context of a <visit>
>> element, doing:
>>
>>   <xsl:variable name="matchingForm"
>>   select="//forms/form[(@formtypeID = $formtypeID) and (@visitID =
>>   $visitID)]"/>
>>
>> will not work, because "//forms" is taken relative to the context
>> node? Certainly this seems to be happening, as no matches are
>> occurring.

MK> //forms selects all the <forms> elements in the same document as the context
MK> node.

That is what I was hoping for.

MK> Your problem is more likely to be your attribute names: your <visit> element
MK> has an @id attribute but no @visitID attribute; similarly there is no
MK> @formtypeID.

I noticed that as well, but it was just a type when creating the email
I think. That problem is not present in the actual code I'm using (on
a different computer). I will take a look back at what I was doing and
once I've got my head around it again I'll post back...


-- 
groovy baby,
 Kevin                    mailto:xmldude@xxxxxxxxxxxxxxxx

++++++++++++ Cool music - http://mp3.com/marshan
++++++ Attitude Webzine - http://burieddreams.com/attitude



 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.