|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Re[2]: finding position() of an element in a diffe
> 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. //forms selects all the <forms> elements in the same document as the context node. Your problem is more likely to be your attribute names: your <visit> element has an @id attribute but no @visitID attribute; similarly there is no @formtypeID. Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart


![RE: Re[2]: finding position() of an element in a diffe](/images/get_stylus.gif)





