[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: include error

Subject: Re: include error
From: Torsten Schassan <schassan@xxxxxx>
Date: Thu, 29 Nov 2007 13:06:52 +0100
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

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!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.