xsl-list
[Top] [All Lists]

RE: [xsl] How to list the internally assigned priority of all template match rules?

2008-05-20 14:52:30
Ok, a given XSL stylesheet contains multiple 

<xsl:template match=...>

rules. The XSLT processor assigns to each of them a priority 
(value between -0.25 and 0.5) according to some calculation spec. 

Can I somehow list these (internally) assigned priorities ?

Try -explain on the Saxon command line

Assume I want a priority ranking according to the textual 
sequence in the script.
That means the higher the template is mentioned in the xsl 
src text the higher the priority should be.
Can I somehow tell Saxon to use this priority rule instead of 
the default priority calculation?

Transform the stylesheet before submitting it to Saxon to add explicit
priority attributes.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
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>
--~--