[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Portability function-available tips


Subject: RE: [xsl] Portability function-available tips
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Fri, 9 Jan 2004 11:37:37 -0000

> Two other suggestions for how to tackle this:
> 
> (a) put the processor-dependent code in an external XML 
> entity, and use an EntityResolver to bring in the right 
> version of the external entity at stylesheet compile-time.
> 
> (b) write a processor-dependent stylesheet overlay that 
> imports the main logic of the stylesheet and overrides the 
> processor-specific parts (for example, the global variable 
> "foo" in your example below). Use this overlay as the 
> nominated stylesheet for your transformation.

Thanks Mike, but the some of the constraints on this project are that
exactly the sames set of stylesheets should work unchanged with both
Msxml 4 and Saxon - otherwise I would have used option B.  

cheers
anderw

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



Current Thread
Keywords
xml