This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Change the value of a parameter in a template
- To: fredric larsson <fredric dot larsson at exertus dot se>
- Subject: Re: Change the value of a parameter in a template
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Tue, 14 Nov 2000 10:36:39 +0000
- CC: xsl-list at mulberrytech dot com, mikael granhed <mikael dot granhed at exertus dot se>
- Organization: Jeni Tennison Consulting Ltd
- References: <3B6E1008F9EBD111AF380020AF88FF9E065DBC@hercules>
- Reply-To: xsl-list at mulberrytech dot com
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