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

RE: CSS and XSL

Subject: RE: CSS and XSL
From: "Jelks Cabaniss" <jelks@xxxxxxxx>
Date: Fri, 19 Feb 1999 22:26:06 -0500
xml inline css
Oren Ben-Kiki wrote:

> CSS allows attaching style information to XML trees using the following:
>
> 1. A <style> tag whose contents is a stylesheet. This stylesheet isn't XML,
> but in CSS syntax.

Where is "a <style> tag" specified *anywhere* for XML?  The only published means
I've seen of attaching style information to XML is at:

	http://www.w3.org/TR/PR-xml-stylesheet

which uses a PI mechanism (the end result resembling that of LINKing CSS
stylesheets in HTML).

Perhaps you're thinking of HTML 4.0, which *does* have a STYLE element for
*embedded* (i.e, in-the-document-itself) CSS.  Has there been any published
discussion of using embedded CSS in XML?  I personally haven't seen it.

> 2. A "style" attribute which may be attached to any element and which
> contains a complex CSS syntax set of attributes.

I don't really know what you mean by a "complex CSS syntax set of attributes".
Doesn't have to be any more complex than the number of styles you're applying:

	<p style="color: red">Howdy!</p>.

is not all that complex.

	<p style="font: 12pt garamond, serif; color: red">Howdy!</p>.

is a little more complex -- for obvious reasons.

Anyway, inline CSS is mostly used for on-the-fly authoring, where it might not
be considered worthwhile for a one-time effect ("Do we really want to declare an
ID or CLASS in an embedded or linked stylesheet for this one word in red?").

Note: while we have been discussing here inline-CSS-in-XML as if it were a fait
accompli, and while IE5b2 supports it (see
http://cpcug.org/user/jelks/XML/xcss.xml if you're using it), again, I haven't
seen any published discussion of using it.

> 3. Some supporting attributes such as "class" which again might be attached
> to any XML tag.

I also have seen no published W3C discussions on using CLASS and/or ID
mechanisms a la HTML 4 in XML.  Presumably these things are being thrashed out
behind closed doors, but we mortals ain't privy to such highfalutin' venues.

(If any or all of these things -- embedded CSS in XML, inline CSS in XML, and
the use of CLASS and ID mechanisms for applying CSS styles to XML -- have been
publicly discussed, I would greatly appreciate a pointer to the URL/list ...)

> ...
> The advantages are:
>
> - Using XML syntax for all of CSS.

There goes the neighborhood.

> ...
>
> - Ease of generating CSS from XSL. XSS would be XML, and CSS isn't.

Thank goodness.

> - Separating content from presentation taken one step further - separate
> content, from structure, from style. Transforming content to structure would
> be done by XTL; styling the result would be done by XSS.

What does "transforming content to structure" mean?  Sounds like ASCII-to-Markup
...


/Jelks


 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.