L
leosarasua
One of the great things about XML, I find, is that you can do lots of
things with an XML instance without modifying it. You can have any
kind of processing and displaying by writing a stylesheet separate
from the XML document.
However, the reference to the stylesheet has to be in the XML
document, which already forces you to modify it every time you want to
use a different XSL.This is really inconvenient: in my case, I have a
huge database of XML documents, and I need to process them with
different XSL's depending on the application. Obviously, I don't want
to modify all the XML documents each time.
My question is: what was the reason to design the use of XSL like
this?
Couldn't the XSL be chosen, for example, in the XML processor (i.e.
the browser)? Another possibility: the XSL reference in the XML
document is optional, and if it is missing then it is chosen the first
XSL file in the same directory of the XML document.
Would this be workable? And if so, does anyone know a reason why it
wasn't designed like this?
things with an XML instance without modifying it. You can have any
kind of processing and displaying by writing a stylesheet separate
from the XML document.
However, the reference to the stylesheet has to be in the XML
document, which already forces you to modify it every time you want to
use a different XSL.This is really inconvenient: in my case, I have a
huge database of XML documents, and I need to process them with
different XSL's depending on the application. Obviously, I don't want
to modify all the XML documents each time.
My question is: what was the reason to design the use of XSL like
this?
Couldn't the XSL be chosen, for example, in the XML processor (i.e.
the browser)? Another possibility: the XSL reference in the XML
document is optional, and if it is missing then it is chosen the first
XSL file in the same directory of the XML document.
Would this be workable? And if so, does anyone know a reason why it
wasn't designed like this?