Separating xml and xsl

To specify the stylesheet (XSL or CSS) in the xml document means that if I want my xml doc to be presented in 'n' different ways, I have to maintain as many copies of the doc as the desired no. of ways in which to present the doc.

Would it not be a better idea to leave the xml doc completely unmindful of the stylesheet to be used to present it. Instead, the document that one links to ought to be something that specifies a pair of entries as follows:

1. the XML document to present.
2. the stylesheet (CSS or XSL) used to present the document.

In this way, it is possible for the doc not to bother about how it shall be presented. Also, by not linking the stylesheet to the doc, we can have one stylesheet for a number of docs.

- Mrinal Kant. 
 

Received on Friday, 25 January 2002 00:17:31 UTC