- From: Noah Scales <noahjscales@yahoo.com>
- Date: Wed, 15 Feb 2006 16:56:19 -0800 (PST)
- To: www-style@w3.org
--- Anne van Kesteren <annevk@opera.com> wrote: > Hi Noah, > >[SNIP] > > I rather keep data and style separate. You can separate data and style in one of the following ways: - use separate files (for example, use an XML file with a CSS stylesheet). - use separate namespaces (for example, use an XML file with the XHTML style element and attribute). - use special elements and/or attributes (for example, use an HTML file with the HTML style element and attribute). - use presentation mark-up (for example, transform an XML file to generate XSL-FO). Which type of "separate" do you mean, or do you mean something else? > [SNIP] > Also after possible transformations have > been done so that the final DOM tree is "semantic" Yeah, well, I invented (I think) the term "presentation semantics" in December mails to this list. After that elicited confusion from list members, I stopped using the term. By your use of "semantic", do you mean one of the following: - "content-describing" mark-up (for example, <first-name>Noah</first-name>). - "presentation mark-up" (for example, <inline font="bold 12pt">Noah</inline>). - something else? > [SNIP] > Where is the need for a special <css:style>? From > what I understand <?xml-stylesheet?> is supposed to > solve that... If you allow embedded CSS in custom XML pages, then you can use an external XSL stylesheet to create valid CSS rules from your embedded and inline xmlized CSS. See the postscript for an example. What's a non-techie (disregarding the design of the DOM API) distinction between a document's data and its style? A distinction that helps me decide whether my mixing data mark-up with mark-up from a CSS namespace violates the principle of separating data from style? -Noah PostScript: (using schemas and catalog file for look-ups) <doc xmlns:css="thisworks" xmlns="thunk"> <css:rules> <css:selector ="biz[baz='bim']"> <css:declaration property="foo" value="bar bam bim,bum" /> <css:declaration property="fiz" value="whiz(woo)" /> </css:selector> </css:rules> ... <blah css:style="foo:bom;">yeada yada</blah> </doc> transformed by XSLT becomes--> <?xml-stylesheet href="#embedded_styles" type="text/css"?> <doc xmlns="thunk"> <style xml:id="embedded_styles"> biz[baz='bim'] { foo:bar bam bim,bum; fiz:whiz(woo); } blah#blahID { foo:bom; } </style> ... <blah xml:id="blahID">yeada yada</blah> </doc> __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Received on Thursday, 16 February 2006 00:56:22 UTC