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

Re: Naming styles

Subject: Re: Naming styles
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 20 Aug 2004 16:31:10 +0100
Re:  Naming styles
> Indeed i'm using only includes, not imports. However, i thought that the two are
> basicaly the same, the only diference being their precedence, concept that i
> don't understand completly.


xsl:include is more or less the same as taking the body of the styleseet
you are including (ie everything inside xsl:stylesheet) and sticking it
at the point that the xsl:include appears.

so if you include two variable definitions for the same variable (or two
templates matching the same thing) that is an error, just as if those
clashing declarations had appeared directly in a single stylesheet.

xsl:import on the other hand has the import precedence feature, the
exact details of which are slightly baroque but the basic idea is
simple: any definitions in the importing styleseet are allowed to
conflict (and over-ride) definitions in the imported styleseet.

the idea being that if you want to import some common (or publicly
accessible) styleseet but make some changes you can import it then just
definie whatever variables or templates you want to define and your
definitions will win.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread
  • Naming styles
    • xptm - 20 Aug 2004 13:43:15 -0000
      • xptm - 20 Aug 2004 14:45:53 -0000
        • David Carlisle - 20 Aug 2004 14:56:01 -0000
          • xptm - 20 Aug 2004 15:17:11 -0000
          • David Carlisle - 20 Aug 2004 15:31:49 -0000 <=
          • xptm - 20 Aug 2004 16:55:10 -0000
          • xptm - 23 Aug 2004 15:17:17 -0000
          • David Carlisle - 23 Aug 2004 15:21:52 -0000
          • xptm - 23 Aug 2004 15:55:05 -0000

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.