Re: [xsl] [XSLT 1.0] Q: recursively eliminate empty nodes

Subject: Re: [xsl] [XSLT 1.0] Q: recursively eliminate empty nodes
From: Andriy Gerasika <andriy.gerasika@xxxxxxxxx>
Date: Tue, 09 Nov 2010 00:16:26 +0200
The optional priority attribute is a real number that ranges from -9.0 to 0.0 to 9.0 that sets the priority of importance for a template.

why is -9 good practice rather that -188 or -123.456, or, as in the posted code, -0.5 ? what is so special about -9 that you say it _should_ be used?

 > Saxon will say Recoverable Error if two template match the same node.

sorry, I thought <xsl:template match="@*|node()"> and <xsl:template match="*[not(node())]" /> have the same default priority

I just use identity template priority -9 as universal for life

But there was no other templates of the same priority in the supplied code.


Current Thread