Re: [xsl] Naming styles

Subject: Re: [xsl] Naming styles
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 20 Aug 2004 15:55:25 +0100
> I have several imports, like this


actually you showed xsl:include for which the "best practices" need to
be slightly different than for xsl:import.

If I'm using xsl:import (which I do, mostly) I usually try to make sure
that any variables are defined in each stylesheet, either by having an
explicit xsl:variable... or xsl:importing some stylesheet that defines
the variable.


when pulling together a complete stylesheet by importing all the
components, the import precedence rules will mean that all but one of
the variable definitions will be ignored so you just have to make sure
that the one you want is the one with highest precedence.

If you use xsl:include however, multiple definitions of the same variable
would lead to redfinition errors and so there you need to make sure that
your component stylesheets _don_t (re)define the variables.

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
  • [xsl] Naming styles
    • xptm - Fri, 20 Aug 2004 14:38:54 +0100
      • xptm - Fri, 20 Aug 2004 15:41:33 +0100
        • David Carlisle - Fri, 20 Aug 2004 15:55:25 +0100 <=
          • xptm - Fri, 20 Aug 2004 16:12:47 +0100
          • David Carlisle - Fri, 20 Aug 2004 16:31:10 +0100
          • xptm - Fri, 20 Aug 2004 17:44:09 +0100
          • xptm - Mon, 23 Aug 2004 16:12:41 +0100