XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] XML and CSS



Peter Hunsberger wrote:
cc159a4a0911110911w77376e10y987c5f164af22836@mail.gmail.com" type="cite">
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







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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS