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

Fw: Heretical view

Subject: Fw: Heretical view
From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx>
Date: Sun, 14 Feb 1999 12:37:55 +0200
css_attributes
Scott Ferguson <ferg@xxxxxxxxxx> wrote:
>How about this translation of css?
>
><css:stylesheet>
>
><css:rule match=[XSL_match_pattern]
>  [css_attributes]
>  />
>
><css:media type='print'>
>  [css_rules]
></css:media>
>
></css:stylesheet>
>
>Where [XSL_match_pattern] is an XSL match pattern and [css_attributes] are
exactly the
>attributes in the css spec.
>
>XSL match pattern has the following extensions:
>
>OtherMatchExpr ::= PredicateExpr
>
>PredicateExpr ::= link()
>                | visited()
>                | active()
>                | hover()
>                | focus()
>                | lang(c)
>                | is-id(constant)

And most importantly, a standard DOM access to the stylesheet:
'document.stylesheets.mySheet.topicRule.bg_color = "green"'. Yes, that's
exactly what I had in mind. Just one note: I'd be weary of adding via this
syntax features which aren't available in today's CSS stylesheets. It would
make sense to specify that for level 1.0 of XML-CSS, only XSL patterns which
have an equivalent CSS syntax are required. Level 2 would require full XSL
patterns. This would alow any browser implementer to trivially add level 1
XML-CSS support.

Have fun,

    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.