[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Portability function-available tips
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|