xsl-list
[Top] [All Lists]

Re: Priority and import precedence

2005-01-31 09:07:04


It just seems really strange that the ordering of the import statements
should be more important that the priority attribute.

I think that the reason for xsl:import's existence is that you should be
able to take 10000000000 lines of Norm's docbook stylesheets, xsl:import
them and then define a couple of your own templates for specific
elements where you want your own processing. You can be sure that your
templates will win, even if you have not fully digested the publicly
available stylesheets that you were importing.

If you had to know the priorities on the templates that you wanted to
override, you'd have to understand the stylesheets well enough to work
out which templates were being used, and with what priority, and then
specify a higher one. (well actually it would be easier just to keep
adding 0's to the end of the priority until you won:-)

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



<Prev in Thread] Current Thread [Next in Thread>