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

Subject: Re: [xsl] dynamically set priority in xsl:template
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 02 Mar 2007 12:18:30 +0000
>>>>> "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:

shows you that the priority attributes takes




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