Re: Using parameters in Attribute Value Templates

Subject: Re: Using parameters in Attribute Value Templates
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 2 Dec 1999 15:31:55 GMT
> What is wrong with my syntax?

Er Nothing, I suspect.

The problem is nothing to do with parameters or variables

   <xsl:sort select="....some expression..." order="{$orderby}" />

works in the current xt at least in exactly the same way as

   <xsl:sort select="....some expression..." order="{'descending'}" />

which is to say it doesn't work at all.

In an AVT the expressions inside a { } are evaluated and coerced to
being strings, and one assumes (but it doesn't say in the spec) that
all such strings, and the characters outside of { } are joined together
with an implicit concat() to make a resulting string which is used
as the value of the AVT. In this interpretation 
     "{'descending'}" and "descending" 
would be equivalent.

What does the new saxon do (Michael?)


 XSL-List info and archive:

Current Thread