xsl-list
[Top] [All Lists]

Re: [xsl] dynamically set priority in xsl:template

2007-03-02 05:19:42
"Georges" == Georges Schmitz <georges(_dot_)schmitz(_at_)heitec(_dot_)de> 
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--