|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Fw: Heretical view
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








