xsl-list
[Top] [All Lists]

Re: [xsl] Difference in priority of node() and *

2008-02-16 06:16:28


But if we/everybody is convinced, that what I have said (i.e. default
priority of * should be higher than node() ) is correct; and that this
is a better design, then in future version of the language, we can
deprecate the old idea, and adopt the new design.

It would be far too much of a change to make keeping the same syntax
you couldn't make version="3.0" change the priority of node() you'd have
to introduce a new something() test to replace  node().

But I don't think there is any problem anyway, there is absolutely
nothing in the language that suggests that in general more specific
matches get a higher default template.

foo[x=1] is clearly more specific than foo[x > 0] but they have the same
default priority. node() and * having the same priority is no different.

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

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