This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Variables in XPath expressions
- To: xsl-list at mulberrytech dot com
- Subject: Re: Variables in XPath expressions
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 29 Mar 2000 12:09:42 GMT
- References: <39B19660C174D311BB9000A0C9E01C3F18BA54@corfu.rnib.org.uk>
- Reply-To: xsl-list at mulberrytech dot com
> It can only be used when adding an attribute to an element
> which is to go into the output tree?
> And nowhere else?
No.
It can only be used in an attribute declared to be an "Attribute Value
template" in the XSLT recommendation.
There is no other possible description, the list of which elements take
AVT arguments and which don't is somewhat arbitrary. You just have
to check in each case. But attributes (select, test etc) that take xpath
expressions are never interpreted as AVT, as Michael said.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list