Charles wrote:
> I create web sites with XHTML 1.0 Transitional, wich is compatible with
> the XML specification on the W3C web site. I was wondering if it's
> possible to create real-world web sites with only XML files (not using
> any HTML markups) and external style sheets.
There are people building web sites with SVG only, but of course SVG is
like XHTML a well defined XML application. And to use SVG sites you
usually need a plugin like the Adobe SVG viewer.
As for creating and styling your own markup language, with browsers like
Mozilla and Opera that have strong CSS 2 support that is possible. But
then what do you intend to do to have a link for instance? You would
then need to turn back to XHTML and include an
<a xmlns="http://www.w3.org/1999/xhtml" href="whatever.xml">link</a>
element or you would need to use XLink (which only Mozilla supports but
not Opera). I think Opera also has some CSS extension to turn an XML
element into a hyperlink but I have never used that.
So in my view it is not of much use, if you want to build a web site use
an established and well supported document type like text/html.
You can of course use XML to markup your data but if you want to have
people view that data with a browser then transform it to HTML for them.
--
Martin Honnen
http://JavaScript.FAQTs.com/