[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL - Transforming 2 XSL stylesheets from 1 XML fi

Subject: Re: XSL - Transforming 2 XSL stylesheets from 1 XML file
From: JBryant@xxxxxxxxx
Date: Thu, 5 May 2005 11:12:52 -0500
2 stylesheets
>    Andrew> it's a practice best avoided.
>
> This is harder to argue against, given the lamentable state
> of existing implementations.

I would argue against embedding this kind of information in the XML source 
document for a wholly different reason. I use XSL for single-sourcing 
solutions. I have been in the situation of having one XML source and 
generating two different output formats from it when a client asks for a 
third output format. I wouldn't wish to modify the XML source to support 
the new format when I could just write yet another stylesheet and go 
merrily along without ever touching the XML source. (And what about the 
fourth and fifth and so on down the road? I might have to mess with that 
XML source many times.)

As a general rule, I prefer to apply constraints at the latest possible 
point in the process. In this case, I don't want to set the media type of 
the output until I generate the output.

To trot out an old metaphor, water is just water. It's up to the 
generator, the farmer, the water treatment plant, and others to make good 
use of the water when it gets to them. It'd be silly to expect the water 
to know the uses people intend for it.

My $.02 for the day.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.