[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML and CSS

  • From: "Simon St.Laurent" <simonstl@simonstl.com>
  • To: xml-dev@lists.xml.org
  • Date: Mon, 09 Nov 2009 08:10:31 -0500

Re:  XML and CSS
Jesper Tverskov wrote:
> All text books about XML have a pretty long chapter about how to style
> XML with CSS. Almost all new browsers do that when we click on an XML
> file showing a nicely indented XML tree. Most browsers also have some
> JavaScript+CSS presenting RSS XML documents as if they were webpages.
> 
> Apart from the above examples, how common is it to actually style XML
> with CSS? On the web and inside "systems"?

It's not very common, though it does get use.  I've used CSS many times 
to make it easier to explore an XML document without the pointy brackets 
or hierarchy.

More formally, I've heard many good things about Prince, which generates 
PDF from XML and CSS:

http://www.princexml.com/overview/

The main problem I had early on in displaying XML with CSS on the public 
Web was Internet Explorer's lack of support for the display properties, 
apparently for performance reasons, which has since improved.

I wrote a now out-of-date series of articles on XML and CSS for XML.com 
back in 2000.  The summary table does a nice job of describing the state 
of the art at the last moment web developers actually seemed interested 
in using XML directly:

http://www.xml.com/pub/a/2000/05/03/browserchart/index.html

The failure of XLink is, I think, the other reason XML didn't get 
anywhere on the public web.  My XLink talks were frequently my most 
popular, full of developers looking for better hypertext possibilities. 
They generally left with a big but unfulfilled wishlist.

> If we want to display XML in a browser, it seems much more natural and
> have many benefits, to transform that XML to a well-known and
> well-supported XML Application like XHTML made for the purpose.

If you need transformations to reorder your document, make links work, 
or perform calculations, this is completely true.  Otherwise, it's a 
fairly tremendous waste of time.

-- 
Simon St.Laurent
http://simonstl.com/

  • References:
    • XML and CSS
      • From: Jesper Tverskov <jesper.tverskov@gmail.com>

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.