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 |
---|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Naming styles, xptm | Thread | Re: [xsl] Naming styles, xptm |
Re: [xsl] Naming styles, xptm | Date | Re: [xsl] Naming styles, xptm |
Month |