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

Re: XML and CSS

  • From: Kurt Cagle <kurt.cagle@gmail.com>
  • To: "David A. Lee" <dlee@calldei.com>
  • Date: Wed, 11 Nov 2009 10:13:32 -0800

Re:  XML and CSS
I'd agree with David here.

I've written a couple of those XML+CSS type chapters for various books, and the reordering issue was almost immediately the first major problem to crop up with just about any XML data set. There are of course ways around that, but they all involve some kind of alternative transformation technology, whether the use of an initial XSLT in order to remap the content to something closer to (x)html or something like a binding layer like xbl or xbl2. I think that the xml+css vogue came about at a time when most browsers didn't have an xslt processor available to perform processing, and it's since become somewhat obsolete.

Kurt Cagle
Managing Editor
http://xmlToday.org


On Wed, Nov 11, 2009 at 9:21 AM, David A. Lee <dlee@calldei.com> wrote:


Peter Hunsberger wrote:
On Wed, Nov 11, 2009 at 10:49 AM, David A. Lee <dlee@calldei.com> wrote:
  
I read this with interest, and IMHO the biggest thing "missing" is what I
think is the fundamental issue of CSS for XML.
That is you cant re-order the elements !   (Please tell me I'm wrong  .. but
thats my understanding).

    
I have to ask, why do you want to reorder the elements?  That's partly
what XSLT is for, but browser support can be unpredictable.  However,

  
Yes this is what XSLT is for, and CSS cant really do it  ...
Why do it ? Thats an interesting question ... my answer is "Why would you NOT ?"
Much of the XML I deal with is Data oriented.  Its not simply a "document" with some tags to mark it up, its structured data.
How you display that is varient, and its really a degenerative (rare) case that I'd want to display it in the form and order in the XML file,
any more then I'd want to display a raw dump from a relational database in the order and form given by the data extraction SQL statement.
It would be a coincidence, not a general rule, if the data in an XML file happened to be in the structure and order you wanted to display it ...
at least thats my take on it from the XML files I deal with daily.

Even for document oriented XML data, a simple example would be to list a TOC at the beginning ... extracted from the XML Data.
And yes thats what XSLT is for ... ( why I suggest CSS is in the general case not a good tool for displaying XML in a browser).


-D

David A. Lee
> dlee@calldei.com http://www.calldei.com > http://www.xmlsh.org > 812-482-5224







  • Follow-Ups:

[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.