xsl-list
[Top] [All Lists]

Re: [xsl] stylesheet organisation

2011-09-04 04:22:50
On 09/03/2011 04:10 PM, Jesper Tverskov wrote:
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.


HTH




regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.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>