RE: [xsl] Import stylesheet

Subject: RE: [xsl] Import stylesheet
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Tue, 11 Oct 2005 11:14:01 +0100
Brilliant.  One of those moments where I wish I'd thought of that.
Thanks very much indeed.

Just one question.  We cache our stylesheets to avoid load time.  The
"fixed" xsl will be cached.  If we make the on the fly xsl the dominant
one, do you know if the imported or fixed xsl still be loaded from
cache?

Regards,

Mark

> -----Original Message-----
> From: David Carlisle [mailto:davidc@xxxxxxxxx]
> Sent: Tuesday, October 11, 2005 11:08 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] Import stylesheet
>
>
> Yoe need to invert your processing:
>
> Don't try to import a stylesheet depending on a parameter
> (It's a compile time directive so can't depend on any values)
>
> Instead just make your dynamically generated stylesheets
> import the main one with all the common code.
>
> then rather than call your main stylesheet passing the name
> of the dynamic sheet as parameter, just execute the newly
> created stylesheet.
>
> David
>
>
> ______________________________________________________________
> __________
> This e-mail has been scanned for all viruses by Star. 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