This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
SV: Change the value of a parameter in a template
- To: Jeni Tennison <mail at jenitennison dot com>
- Subject: SV: Change the value of a parameter in a template
- From: fredric larsson <fredric dot larsson at exertus dot se>
- Date: Tue, 14 Nov 2000 13:18:48 +0100
- Cc: xsl-list at mulberrytech dot com
- Reply-To: xsl-list at mulberrytech dot com
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