Subject: SV: Change the value of a parameter in a template From: fredric larsson <fredric.larsson@xxxxxxxxxx> Date: Tue, 14 Nov 2000 13:18:48 +0100 |
Jeni, That's right I want to get the 'Right' element from the wc:INSTANCE which have its 'Left' element equal to '$article'. How do I use XPath to do that? /Fredric -----Ursprungligt meddelande----- Från: Jeni Tennison [mailto:mail@xxxxxxxxxxxxxxxx] Skickat: Tuesday, November 14, 2000 11:37 AM Till: fredric larsson Kopia: xsl-list@xxxxxxxxxxxxxxxx; mikael granhed Ämne: Re: Change the value of a parameter in a template Fredric, > I want to compare XML-data with a value of a parameter in my XSL-stylesheet. I may have misunderstood, but I think what you want to achieve is to find all the 'Right' elements where the 'Left' element that occurs in the same wc:INSTANCE has a value equal to the $article parameter. You don't need to use a template to do this: you can use an XPath. You are after the Right elements: Right that are children of wc:INSTANCE elements: wc:INSTANCE/Right where the wc:INSTANCE's 'Left' child has a value equal to $article: wc:INSTANCE[Left = $article]/Right Or is it more complicated than this? Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Change the value of a parameter, Kay Michael | Thread | Re: SV: Change the value of a param, Jeni Tennison |
Re[2]: The XSL-List Digest V3 #343, Jeni Tennison | Date | Re: SV: Change the value of a param, Jeni Tennison |
Month |