Lists Home |
Date Index |
- To: "xml er" <firstname.lastname@example.org>,<email@example.com>
- Subject: RE: [xml-dev] One XML doc - multiple Stylesheets
- From: "Sebastian Schnitzenbaumer" <firstname.lastname@example.org>
- Date: Tue, 30 Jul 2002 00:48:31 +0200
- Thread-index: AcI1n8ddTnC7jLQXSpuISHxa9nKDBgBr8Y6Q
- Thread-topic: [xml-dev] One XML doc - multiple Stylesheets
Since nobody is answering this poor guy trying to make sense
out the XML mess, I'll go for it...
a really good question, seriously. This is a mess, IMO. Or
to put it nicely, there is still more to be defined in that direction...
As far as I can say, you can place multiple xml stylesheets on
to the same XML document, yes, but there is no way of
saying "Use *only* this if you are a WAP browser, use only
that if you're a rich client web browser, and, BTW, do this
if you want to print...".
The only thing is the 'alternate="yes"' flag on the xml
I took this from my blog . The (somewhat random) browser behaviour
- IE6 will use CSS to style the XML
- X-Smiles and Netscape 7 will use the alternate XSL stylesheet to
transform the document into XHTML (!) and the generated XHTML
references the same CSS (!!) file as defined by the primary
XML stylesheet declaration.
This technique always me to have all style definitions in one place
(the CSS), while still using two different stylesheet technology
since some browsers do one thing (XML+CSS), others do the
other way (XML+XSL(T)) and some do both.
Things like cocoon or anything server-side may take you further,
yes of course, but that's a pity in my view because you have
to embark into a different world (servers) for something that
is sort-of nearly there already client-side
General note: could someone besides the usual suspects go
to the W3C and fix this? CC/PP was meant to solve this but
went nowhere (for whatever reasons).
Von: xml er
Gesendet: Sa 27.07.2002 22:00
Betreff: [xml-dev] One XML doc - multiple Stylesheets
Hello All -
Should be a simple question, I must be overlooking something
very fundamental. Normally when I create XML pages I place the following
in the xml page if I wanted to use the WAP version of the stylesheet:
My problem is that I want to use multiple stylesheets on only
xml document (one for PDF, one for HTML, WAP, etc). How do I solve the
problem of using one XML doc, yet have them transform to multiple
formats. Am I required to use something like Cocoon to do this?
To get your free Web-based E-mail go to http://www.nandomail.com
The xml-dev list is sponsored by XML.org <http://www.xml.org>,
initiative of OASIS <http://www.oasis-open.org>
The list archives are at http://lists.xml.org/archives/xml-dev/
To subscribe or unsubscribe from this list use the subscription