1515
1616 < h1 id =css-namespaces > CSS Namespaces Module</ h1 >
1717
18- < h2 class ="no-num no-toc " id =longstatus > Editor's Draft 19 February 2008</ h2 >
18+ < h2 class ="no-num no-toc " id =longstatus > Editor's Draft 10 March 2008</ h2 >
1919
2020 < dl >
2121 < dt > This version:</ dt >
22- <!-- <dd><a href="http://www.w3.org/TR/2008/WD-css3-namespace-20080219 /">http://www.w3.org/TR/2008/WD-css3-namespace-20080219 /</a></dd> -->
22+ <!-- <dd><a href="http://www.w3.org/TR/2008/WD-css3-namespace-20080310 /">http://www.w3.org/TR/2008/WD-css3-namespace-20080310 /</a></dd> -->
2323
2424 < dd > < a
2525 href ="http://dev.w3.org/csswg/css3-namespace/ "> http://dev.w3.org/csswg/css3-namespace/</ a >
@@ -101,7 +101,12 @@ <h2 class="no-num no-toc" id=status>Status of this document</h2>
101101 Policy</ a > . W3C maintains a < a href ="/2004/01/pp-impl/32061/status "
102102 rel =disclosure > public list of any patent disclosures</ a > made in
103103 connection with the deliverables of the group; that page also includes
104- instructions for disclosing a patent.</ p >
104+ instructions for disclosing a patent. An individual who has actual
105+ knowledge of a patent which the individual believes contains < a
106+ href ="/Consortium/Patent-Policy-20040205/#def-essential "> Essential
107+ Claim(s)</ a > must disclose the information in accordance with < a
108+ href ="/Consortium/Patent-Policy-20040205/#sec-Disclosure "> section 6 of the
109+ W3C Patent Policy</ a > .</ p >
105110 <!--end-status-->
106111
107112 < p > This specification is a < strong > Last Call Working Draft</ strong > . All
@@ -269,6 +274,24 @@ <h2 id=declaration><span class=secno>3. </span>Declaring namespaces: the
269274 of the namespace prefixes used in the markup and whether these are
270275 defaulted or not.</ p >
271276
277+ < div class =example >
278+ < p > For example, given the following XML document:</ p >
279+
280+ < pre > <!--
281+ --> <qml:elem xmlns:qml="http://example.com/q-markup"> </qml:elem> <!--
282+ --> </ pre >
283+
284+ < p > and the following < code > @namespace</ code > declarations:</ p >
285+
286+ < pre > <!--
287+ --> @namespace Q "http://example.com/q-markup";
288+ <!----> @namespace lq "http://example.com/q-markup";<!--
289+ --> </ pre >
290+
291+ < p > The selectors < code > Q|elem</ code > and < code > lq|elem</ code > will both
292+ match the element < code > qml:elem</ code > .</ p >
293+ </ div >
294+
272295 < h3 id =syntax > < span class =secno > 3.1 </ span > Syntax</ h3 >
273296
274297 < p > The syntax for the @namespace rule is as follows (using the notation
@@ -321,10 +344,10 @@ <h3 id=prefixes><span class=secno>3.3 </span>Declaring Prefixes</h3>
321344
322345 < p > If in the namespace declaration the namespace prefix is omitted, then
323346 the namespace so declared is the default namespace. The < dfn
324- id =default > default namespace</ dfn > applies to names that have no explicit
325- namespace prefix. Modules that employ namespace prefixes must define in
326- which contexts the default namespace applies. For example, following < a
327- href ="#REC-XML-NAMES "
347+ id =default > default namespace</ dfn > may apply to names that have no
348+ explicit namespace prefix: modules that employ namespace prefixes must
349+ define in which contexts the default namespace applies. For example,
350+ following < a href ="#REC-XML-NAMES "
328351 rel =biblioentry > [REC-XML-NAMES]<!--{{!REC-XML-NAMES}}--> </ a > , in
329352 Selectors < a href ="#SELECT " rel =biblioentry > [SELECT]<!--{{SELECT}}--> </ a >
330353 the default namespace applies to type selectors—but it does not
@@ -352,9 +375,10 @@ <h2 id=css-qnames><span class=secno>4. </span>CSS Qualified Names</h2>
352375 representing the namespace for which it has been declared, indicates the
353376 namespace of the local name. The prefix of a qualified name may be
354377 omitted to indicate that the name belongs to no namespace, i.e. that the
355- namespace name part of the expanded name has no value. Some contexts may
356- allow the use of an asterisk (< code > *</ code > , U+002A) as a wildcard
357- prefix to indicate a name in any namespace, including no namespace.</ p >
378+ namespace name part of the expanded name has no value. Some contexts (as
379+ defined by the host language) may allow the use of an asterisk
380+ (< code > *</ code > , U+002A) as a wildcard prefix to indicate a name in any
381+ namespace, including no namespace.</ p >
358382
359383 < div class =example >
360384 < p > Given the namespace declarations:</ p >
@@ -394,6 +418,14 @@ <h2 id=css-qnames><span class=secno>4. </span>CSS Qualified Names</h2>
394418 CSS, < a
395419 href ="http://www.w3.org/TR/CSS21/conform.html#ignore "> ignored</ a > .</ p >
396420
421+ < div class =example >
422+ < p > For example, the Selectors module < a href ="#SELECT "
423+ rel =biblioentry > [SELECT]<!--{{SELECT}}--> </ a > defines a type selector
424+ with an undeclared namespace prefix to be an invalid selector, and CSS
425+ < a href ="#CSS21 " rel =biblioentry > [CSS21]<!--{{CSS21}}--> </ a > requires
426+ rule sets with an invalid selector to be completely ignored.</ p >
427+ </ div >
428+
397429 < p > In a CSS qualified name, a prefix that is declared to represent the
398430 empty string namespace (< code > ""</ code > ) is interpreted as representing
399431 no namespace.</ p >
@@ -422,25 +454,28 @@ <h3 class=no-num id=normative-references>Normative references</h3>
422454
423455 < dt id =CSS21 > [CSS21]
424456
425- < dd > Bert Bos; et al. < cite > Cascading Style Sheets, level 2 revision
426- 1.</ cite > 19 July 2007. W3C Candidate Recommendation. (Work in progress.)
427- URL: < a
457+ < dd > Bert Bos; et al. < a
458+ href ="http://www.w3.org/TR/2007/CR-CSS21-20070719 "> < cite > Cascading Style
459+ Sheets, level 2 revision 1.</ cite > </ a > 19 July 2007. W3C Candidate
460+ Recommendation. (Work in progress.) URL: < a
428461 href ="http://www.w3.org/TR/2007/CR-CSS21-20070719 "> http://www.w3.org/TR/2007/CR-CSS21-20070719</ a >
429462 </ dd >
430463 <!---->
431464
432465 < dt id =REC-XML-NAMES > [REC-XML-NAMES]
433466
434- < dd > Tim Bray; et al. < cite > Namespaces in XML.</ cite > 16 August 2006. W3C
435- Recommendation. URL: < a
467+ < dd > Tim Bray; et al. < a
468+ href ="http://www.w3.org/TR/2006/REC-xml-names-20060816 "> < cite > Namespaces
469+ in XML.</ cite > </ a > 16 August 2006. W3C Recommendation. URL: < a
436470 href ="http://www.w3.org/TR/2006/REC-xml-names-20060816 "> http://www.w3.org/TR/2006/REC-xml-names-20060816</ a >
437471 </ dd >
438472 <!---->
439473
440474 < dt id =RFC2119 > [RFC2119]
441475
442- < dd > S. Bradner. < cite > Key words for use in RFCs to Indicate Requirement
443- Levels.</ cite > Internet RFC 2119. URL: < a
476+ < dd > S. Bradner. < a href ="http://www.ietf.org/rfc/rfc2119.txt "> < cite > Key
477+ words for use in RFCs to Indicate Requirement Levels.</ cite > </ a > Internet
478+ RFC 2119. URL: < a
444479 href ="http://www.ietf.org/rfc/rfc2119.txt "> http://www.ietf.org/rfc/rfc2119.txt</ a >
445480 </ dd >
446481 <!---->
@@ -455,20 +490,31 @@ <h3 class=no-num id=informative-references>Informative references</h3>
455490 < dt style ="display: none "> <!-- keeps the doc valid if the DL is empty -->
456491 <!---->
457492
493+ < dt id =CSS21 > [CSS21]
494+
495+ < dd > Bert Bos; et al. < a
496+ href ="http://www.w3.org/TR/2007/CR-CSS21-20070719 "> < cite > Cascading Style
497+ Sheets, level 2 revision 1.</ cite > </ a > 19 July 2007. W3C Candidate
498+ Recommendation. (Work in progress.) URL: < a
499+ href ="http://www.w3.org/TR/2007/CR-CSS21-20070719 "> http://www.w3.org/TR/2007/CR-CSS21-20070719</ a >
500+ </ dd >
501+ <!---->
502+
458503 < dt id =CSS3VAL > [CSS3VAL]
459504
460- < dd > Håkon Wium Lie; Chris Lilley. < cite > CSS3 module: Values and
461- Units.</ cite > 19 September 2006. W3C Working Draft. (Work in progress.)
462- URL: < a
505+ < dd > Håkon Wium Lie; Chris Lilley. < a
506+ href ="http://www.w3.org/TR/2006/WD-css3-values-20060919 "> < cite > CSS3
507+ module: Values and Units.</ cite > </ a > 19 September 2006. W3C Working
508+ Draft. (Work in progress.) URL: < a
463509 href ="http://www.w3.org/TR/2006/WD-css3-values-20060919 "> http://www.w3.org/TR/2006/WD-css3-values-20060919</ a >
464510 </ dd >
465511 <!---->
466512
467513 < dt id =SELECT > [SELECT]
468514
469- < dd > Daniel Glazman; Tantek Çelik; Ian Hickson (eds).
470- < cite > Selectors.</ cite > 15 December 2005. W3C Working Draft. (Work in
471- progress.) URL: < a
515+ < dd > Daniel Glazman; Tantek Çelik; Ian Hickson (eds). < a
516+ href =" http://www.w3.org/TR/2005/WD-css3-selectors-20051215 " > < cite > Selectors.</ cite > </ a >
517+ 15 December 2005. W3C Working Draft. (Work in progress.) URL: < a
472518 href ="http://www.w3.org/TR/2005/WD-css3-selectors-20051215 "> http://www.w3.org/TR/2005/WD-css3-selectors-20051215</ a >
473519 </ dd >
474520 <!---->
0 commit comments