[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: dynamically set priority in xsl:template

Subject: Re: dynamically set priority in xsl:template
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 02 Mar 2007 12:18:30 +0000
Re:  dynamically set priority in xsl:template
>>>>> "Georges" == Georges Schmitz <georges.schmitz@xxxxxxxxx> writes:

    Georges> Is it not possible at all, to set the priority by a
    Georges> parameter? 

Such a question is easily answered by looking at the recommendation. I
recommend getting into the habit of doing this.

In this case:

http://www.w3.org/TR/xslt20/#element-template

shows you that the priority attributes takes

number

not 

{number}

The latter is an AVT (AttributeValueTemplate), which means it can be
an XPath expression (such as a variable reference).
Since that is not allowed, it can only be a numeric literal.
(In fact it can only be a decimal literal,. unfortunatley the
recommendation doesn't make that obvious at this point. You don't find
this out until section 6.4)

So in short, the answer is no.
-- 
Colin Adams
Preston Lancashire

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.