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

RE: xsl:include

Subject: RE: xsl:include
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Sun, 16 Nov 2003 14:12:51 +0100
RE:  xsl:include
> -----Original Message-----
> From: Kevin Waterson
>
> I am having some trouble including an xsl file.
> I can include the file without any problems but I am
> not familiar with the precedence. It would seem the
> first document is "taking over" the include doc.
>

This would indeed be conformant behaviour AFAIK.

>
> Now, do I need to start with the template match?
> Apart from other problems, is having the <xsl:template match="/">
> the same in both docs a problem?

Hmmm... not sure about this. Certainly never entered my mind to use two
xsls, both with a root template. The more 'correct' design I believe to be
one where the root template is in your main xsl. All other templates can be
placed in the other, included file (consider this an xsl lib file). If there
is name-clashing --meaning the two stylesheets contain templates that have
exactly the same <xsl:template match="..."> declaration; so no different
modes for instance -- the template in the main xsl will be used.


Hope this helps!

Greetz,

Andreas


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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-2013 All Rights Reserved.