|
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: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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Using parameters in Attribute Valu, r . mcarthur | Thread | RE: Using parameters in Attribute , Kay Michael |
| Using parameters in Attribute Valu, r . mcarthur | Date | RE: support for namespace axis?, Vun Kannon, David |
| Month |