Subject: Re: [xsl] why: first mode, then matching the node, then import precedence, then priority? From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 4 Jun 2008 16:30:33 +0100 |
> Why is there such a weird rule for selecting the right template? I think the main reason is that the intuition behind xsl:import is that you can import some gigantic public stylesheet collection (say docbook) more or less as a black box, and then if it doesn't work the way you want, your (importing) stylesheet can overide _any_ template as import precidence wins. If priority won you would have to know the details of the docbook stylesheet collection, to be able to write templates of higher priority. But this is all guessing based on the behaviour, I was not (and am not) on the group that made the design. 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. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] why: first mode, then mat, Michael Kay | Thread | [xsl] <xsl:apply-imports> and rules, Johannes Neubauer |
RE: [xsl] why: first mode, then mat, Michael Kay | Date | RE: [xsl] Debug/QC Stylesheets, Michael Kay |
Month |