Larry <> wrote:
> You might want to use XSL as to parse and format the XML file
Maybe. And it might or might not have the desired effect.
XML documents don't make good web pages as such or even with a style
sheet, because browsers may not have support to the style sheet used,
or may have style sheet support disabled. Moreover, some browsers just
don't grok XML. What, for example, should a speech-based user agent do
when it gets an XML document?
Converting the XML document to an (X)HTML document server-side is the
best approach to making the content accessible on the web. This could
take place on the fly (client asks for a document, server picks up an
XML document, converts it, and sends the HTML result to the client)
or offline (the HTML output is generated whenever the XML document is
changed).
But _if_ you wish to throw XML at web browsers, then you can, in simple
cases, use a CSS style sheet, which is simpler than using XSL. In the
given case, you would probably want to make <to>Tove</to> to appear as
To: Tove
on a line of its own, perhaps with "To:" in bold. This would require
the use of generated content in CSS, so this isn't one of the simple
cases. (IE and Firefox do not support generated content.)
--
Yucca,
http://www.cs.tut.fi/~jkorpela/