xsl-list
[Top] [All Lists]

Re: [xsl] reversing or swapping nested node hierarchy

2006-03-21 09:33:02

Is it valid to design a stylesheet which depends on the order in which
templates are declared?

No, the order makes no difference (except when recovering from an error)
It is an error to have two templates that match a mode with the same
priority.

For instance, match="*" and match="*[b]" could both apply
to an element containing a <b> element.

Both patterns match such an element but only the *[b] template will be
invoked as *[b] has a higher default priority than *. You can override
the default priority by going priority="123" for any number that you
choose.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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