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

Fw: CSS and XSL

Subject: Fw: CSS and XSL
From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx>
Date: Mon, 15 Feb 1999 14:53:00 +0200
xsl css body background color
Frank Boumphrey <bckman@xxxxxxxxxxxxx> wrote:
> CSS is a compact, easy to understand, and easy to program style language.
>As written CSS syntax is sparing of resources. Even when one uses a built
in
>xml parser
>
>body{
> background-color:red;
> color:green;
> }
>
>.emphasis{
> font-weight:bold;
> font-style:italic;
> }
>
>Is  not only  terser, but technically easier to parse than:

>
>(Horrid XML version omitted)

But not that much better then:

<css:stylesheet>
 <css:rule match="body" background-color="red" color="green"/>
 <css:rule match=".[@class='emphasis']" font-weight="bold"
font-style="italic"/>
</css:stylesheet>


BTW, most of the arguments of "keeping style in a single attributes" are
directly convertible to "keeping style attributes in a single tag" - in this
case, either <css:rule> in a stylesheet or a <css:style> tag embedded inside
any other tag. This keeps DTDs clean and simple, separates references to
style attributes in the DOM (element.style.<attribute>) and in general is a
Good Thing (tm). The point is, all these advantages can be obtained within
the XML framework - there's no real reason for a single textual STYLE
attribute.

Share & Enjoy,

    Oren Ben-Kiki


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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