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

Re: XML and CSS

  • From: "David A. Lee" <dlee@calldei.com>
  • To: Jesper Tverskov <jesper.tverskov@gmail.com>
  • Date: Wed, 11 Nov 2009 11:49:16 -0500

Re:  XML and CSS
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).

If pure CSS is used to render XML in the browser, then the resulting 
HTML HAS to be in the same basic structure as the XML.
Simple case if I have

<part>
   <name>Name</name>
   <code>Code</code>
</part>


And I want it to render like
       <P> <B>Code</B> - Name </P>

I don't believe there is any way to do this in CSS.


This, IMHO, is the fundamental limitation of CSS.  The XML has to be 
structured how you want it displayed, all the CSS can do is add some 
"styling" but it cant restructure the document.  One of the big "goals" 
of XML  (IMHO) is that it can be data centric, not display centric.  
This makes CSS rendering a data oriented XML document severely 
crippled.  It can only do so much - namely add "style" to an element, 
not reformat the document.

(again, please tell me I'm wrong ! - but this is what the CSS gurus at 
work tell me as to why I cant send them XML directly to display in a 
mobile browser).


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



Jesper Tverskov wrote:
> To summarize the thread I have made a tutorial about it.
>
> "Styling XML with CSS",
> http://www.xmlplease.com/xmlcss
>
> Cheers,
> Jesper Tverskov
>
> http://www.xmlkurser.dk
> http://www.xmlplease.com
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>   

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