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

Subject: Re: Using parameters in Attribute Value Templates
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 2 Dec 1999 15:31:55 GMT
attribute value templates avt
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.