Subject: Re: [xsl] stylesheet organisation From: davep <davep@xxxxxxxxxxxxx> Date: Sun, 04 Sep 2011 10:22:37 +0100 |
Thanks once more for all the information about xsl:import.
I have now also reread Michael Kay, XSLT 2.0 and XPath 2.0 Programmer's Reference, about xsl:import, 4th edition, pp 357-368, and must admit that there is much more to xsl:import than my oversimplified, misleading, mostly wrong, etc. (you can add what you please) generalization.
I still need to boil it all down to something that is possible to explain in a minute or two in order to really understand it!
Cheers Jesper Tverskov
As an example of import, the docbook stylesheets, fairly complex, make a great use case.
The 300+ elements of docbook all have templates which style input. A customization layer, which imports the docbook stylesheets, is used to 'modify' to the user needs, the styling.
Hence my match='d:chapter' takes precedence over the standard docbook template and allows me to provide the styling I want, allowing all other elements to be styled in a standard manner.
Without this layer, importing the standard templates, the utility of the suite wouldn't be as good.
-- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] stylesheet organisation, Jesper Tverskov | Thread | Re: [xsl] stylesheet organisation, Wendell Piez |
Re: [xsl] stylesheet organisation, Andrew Welch | Date | Re: [xsl] stylesheet organisation, Alex Muir |
Month |