Subject: Re[4]: [xsl] finding position() of an element in a different context From: Kevin Burges <xmldude@xxxxxxxxxxxxxxxx> Date: Wed, 2 May 2001 16:57:06 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] RE: ordering and iteration pr, Dimitre Novatchev | Thread | Re[2]: [xsl] finding position() of , Kevin Burges |
AW: [xsl] How can I ask for a speci, Marcus Klinge | Date | RE: [xsl] using multiple xsl's with, Carlton Noles |
Month |