FW: [css3-namespace] XML Core WG's review

 

-----Original Message-----
From: Karl Dubost [mailto:karl@w3.org] 
Sent: Wednesday, 2006 September 06 23:35
To: Boris Zbarsky
Cc: Grosso, Paul; www-style@w3.org
Subject: Re: [css3-namespace] XML Core WG's review


It is always better to devise on a test case.


Le 7 sept. 06 à 13:00, Boris Zbarsky a écrit :
> That's not true, due to point (b) in Paul's mail.
>
>> See rationale and example in
>> http://lists.w3.org/Archives/Public/www-style/2006Sep/0033
>
> That example makes the incorrect assumption that CSS and XML  
> prefixes need to be identical.  They do not; only the namespaces  
> need to match.


Example with this new assertion:


<html xmlns="http://www.w3.org/2002/06/xhtml2/"
       xmlns:dc="http://dublincore.org/documents/dcmi-namespace/"
       xmlns:DC="http://foo.example.org/"
       xml:lang="en">
    <head>
      <title>Some Document</title>
	 <style type="text/css">
	    @namespace dc "http://dublincore.org/documents/dcmi-namespace/";
	    @namespace foo "http://foo.example.org/";
	    foo|title {text-align: left;}
	    dc|title {text-align: center;}
	  </style>
    </head>
    <body>
      <dc:title><cite href="urn:isbn:0060006994">Fix-it Duck</cite></ 
dc:title>
      <DC:title>Doctor</DC:title>
    </body>
  </html>

Will it effectively style the two elements?
    - "Fix-it Duck"     centered
    - "Doctor"          left justified

If yes, then the issue will be moved from conflicts to clarity in the  
specification with more prose and give an example.

Thanks for the clarification Boris.




-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***

Received on Thursday, 7 September 2006 13:58:23 UTC