ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error
|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Using parameters in Attribute Value Templates
> What is wrong with my syntax?
Er Nothing, I suspect.
The problem is nothing to do with parameters or variables
<xsl:apply-templates>
<xsl:sort select="....some expression..." order="{$orderby}" />
</xsl:apply-templates>
works in the current xt at least in exactly the same way as
<xsl:apply-templates>
<xsl:sort select="....some expression..." order="{'descending'}" />
</xsl:apply-templates>
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?)
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








