This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

SV: Change the value of a parameter in a template


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@jenitennison.com]
Skickat: Tuesday, November 14, 2000 11:37 AM
Till: fredric larsson
Kopia: xsl-list@mulberrytech.com; 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]