|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: include error
Dear Michael, thank for the fast answer, but... > It seems you should be using xsl:import rather than xsl:include. > > If you use xsl:include then the declarations in both modules have the same > precedence and any conflicts can cause an error. With xsl:import, the > importing module overrides the imported module. > ...this is exactely what I don't need: The imported templates have to override the importing as they are more specialized as the ones. Shall I just turn arround the mechanism and import the general stylesheet into the more specialized? Besides this, for curiosity: You state that "[i]t may well cause errors due to the presence of duplicate declarations; in fact, if the stylesheets contains definitions of global variables or named templates, and is included more than once at the same precedence, such errors are almost inevitable." (XSLT 2.0, 3rd ed., p. 330) - What does "may" mean? It is only possible, depending on the software to throw an error or not? - You mention only variables and named templates: What about the matching templates? Best, Torsten -- Torsten Schassan Herzog August Bibliothek, Postfach 1364, D-38299 Wolfenbuettel Tel.: +49-5331-808-130, schassan {at} hab.de http://www.hab.de; http://www.hab.de/forschung/projekte/weiss64.htm
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







