|
![](/i/fill.gif) |
Am 20.02.2012 17:21, schrieb Invisible:
> OK, so I've written a program that generates a bunch of XML as output.
> If you open that in a web browser, it shows up as a simple parse tree.
> Which is OK, but a little verbose.
>
> Fortunately, using the wonders of XSL (specifically, XSLT) you can have
> the browser transform the raw XML into a pretty-looking XHTML document.
>
> But *only* if you edit the original XML file to mention the XSLT file
> that you want to apply.
Why does this come as such a surprise to you?
Remember that the same thing is common practice for HTML and CSS as
well: If you want the HTML to be rendered using a particular style
sheet, you'll usually specify that in the HTML header.
I'm not sure whether all modern browsers support client-supplied CSS,
but I wouldn't be surprised if there were still some out there that
don't. For instance I have no idea how to choose a custom CSS in
Firefox; you can disable all CSS, or choose which of multiple
server-supplied CSS to use, but that seems to be about it.
Post a reply to this message
|
![](/i/fill.gif) |