- From: Felix Sasaki via cvs-syncmail <cvsmail@w3.org>
- Date: Sun, 19 Aug 2012 18:38:39 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20 In directory hutz:/tmp/cvs-serv24751 Modified Files: its20.html its20.odd Log Message: Small fix for disambiguation Index: its20.odd =================================================================== RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd,v retrieving revision 1.115 retrieving revision 1.116 diff -u -d -r1.115 -r1.116 --- its20.odd 18 Aug 2012 23:07:31 -0000 1.115 +++ its20.odd 19 Aug 2012 18:38:37 -0000 1.116 @@ -3584,11 +3584,17 @@ <head>Local mixed usage of <att>entityTypeSourceRef</att>, <att>entityTypeRef</att>, <att>disambigSourceRef</att>, <att>disambigIdentRef</att> in HTML+RDFa Lite</head> + <p>See <ptr target="#EX-disambiguation-html5-rdfa-companion-document" type="exref"/> for the companion document with the mapping data.</p> <egXML xmlns="http://www.tei-c.org/ns/Examples" type="html5" target="examples/html5/EX-disambiguation-html5-rdfa.html"/> - <p>Companion document, having the mapping data:</p> - <egXML xmlns="http://www.tei-c.org/ns/Examples" - target="examples/html5/EX-disambiguation-html5-rdfa.xml"/> + </exemplum> + <exemplum xml:id="EX-disambiguation-html5-rdfa-companion-document"> + <head>Local mixed usage of <att>entityTypeSourceRef</att>, + <att>entityTypeRef</att>, <att>disambigSourceRef</att>, + <att>disambigIdentRef</att> in HTML+RDFa Lite</head> + <p>Companion document, having the mapping data for <ptr target="#EX-disambiguation-html5-rdfa" type="exref"/>.</p> + <egXML xmlns="http://www.tei-c.org/ns/Examples" type="html5" + target="examples/html5/EX-disambiguation-html5-rdfa.html"/> </exemplum> </div> @@ -4751,6 +4757,7 @@ document since the <ref target="http://www.w3.org/TR/2012/WD-its20-20120731/">ITS 2.0 Working Draft 31 July 2012</ref>.</p> <list type="ordered"> + <item>Added <ptr type="specref" target="#Disambiguation"/>.</item> <item>Added <ptr target="#preservespace" type="specref" />.</item> <item>Added <ptr target="#idvalue" type="specref" />.</item> <item>Added support for different query language and reworked whole XPath and CSS Selectors Index: its20.html =================================================================== RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html,v retrieving revision 1.115 retrieving revision 1.116 diff -u -d -r1.115 -r1.116 --- its20.html 18 Aug 2012 23:07:31 -0000 1.115 +++ its20.html 19 Aug 2012 18:38:37 -0000 1.116 @@ -1911,7 +1911,7 @@ and crawling infrastructure that is able to consume this kind of data.</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-disambiguation-html5-rdfa" id="EX-disambiguation-html5-rdfa" shape="rect"/>Example 53: Local mixed usage of <a class="itsmarkup" href="#att.disambiguation.attribute.entityTypeSourceRef" shape="rect">entityTypeSourceRef</a>, <a class="itsmarkup" href="#disambiguationRule.attributes" shape="rect">entityTypeRef</a>, <a class="itsmarkup" href="#att.disambiguation.attribute.disambigSourceRef" shape="rect">disambigSourceRef</a>, - <a class="itsmarkup" href="#att.disambiguation.attribute.disambigIdentRef" shape="rect">disambigIdentRef</a> in HTML+RDFa Lite</div><div class="exampleInner"><pre xml:space="preserve"><!DOCTYPE html>
 + <a class="itsmarkup" href="#att.disambiguation.attribute.disambigIdentRef" shape="rect">disambigIdentRef</a> in HTML+RDFa Lite</div><p>See <a href="#EX-disambiguation-html5-rdfa-companion-document" shape="rect">Example 54</a> for the companion document with the mapping data.</p><div class="exampleInner"><pre xml:space="preserve"><!DOCTYPE html>
 <html xmlns:its="http://www.w3.org/2005/11/its" lang="en"> <head> @@ -1922,12 +1922,20 @@ <p> <span resource="http://dbpedia.org/resource/Dublin" typeof="http:/nerd.eurecom.fr/ontology#Place" property="name">Dublin</span> is the capital of Ireland.</p> </body> -</html></pre></div><p>[Source file: <a href="examples/html5/EX-disambiguation-html5-rdfa.html" shape="rect">examples/html5/EX-disambiguation-html5-rdfa.html</a>]</p><p>Companion document, having the mapping data:</p><div class="exampleInner"><pre xml:space="preserve"> -<its:rules - xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> - <its:disambiguationRule selector="//*[@typeof]" entityTypeRefPointer="@typeof"/> - <its:disambiguationRule selector="//*[@resource]" disambigIdentRefPointer="@resource"/> -</its:rules></pre></div><p>[Source file: <a href="examples/html5/EX-disambiguation-html5-rdfa.xml" shape="rect">examples/html5/EX-disambiguation-html5-rdfa.xml</a>]</p></div></div><div class="div3"> +</html></pre></div><p>[Source file: <a href="examples/html5/EX-disambiguation-html5-rdfa.html" shape="rect">examples/html5/EX-disambiguation-html5-rdfa.html</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-disambiguation-html5-rdfa-companion-document" id="EX-disambiguation-html5-rdfa-companion-document" shape="rect"/>Example 54: Local mixed usage of <a class="itsmarkup" href="#att.disambiguation.attribute.entityTypeSourceRef" shape="rect">entityTypeSourceRef</a>, + <a class="itsmarkup" href="#disambiguationRule.attributes" shape="rect">entityTypeRef</a>, <a class="itsmarkup" href="#att.disambiguation.attribute.disambigSourceRef" shape="rect">disambigSourceRef</a>, + <a class="itsmarkup" href="#att.disambiguation.attribute.disambigIdentRef" shape="rect">disambigIdentRef</a> in HTML+RDFa Lite</div><p>Companion document, having the mapping data for <a href="#EX-disambiguation-html5-rdfa" shape="rect">Example 53</a>.</p><div class="exampleInner"><pre xml:space="preserve"><!DOCTYPE html>
 +<html + xmlns:its="http://www.w3.org/2005/11/its" lang="en"> + <head> + <meta charset="utf-8"/> + <title>Entity: Local Test</title> + </head> + <body prefix="its: http://www.w3.org/20XX/XX/its2.0"> + <p> + <span resource="http://dbpedia.org/resource/Dublin" typeof="http:/nerd.eurecom.fr/ontology#Place" property="name">Dublin</span> is the capital of Ireland.</p> + </body> +</html></pre></div><p>[Source file: <a href="examples/html5/EX-disambiguation-html5-rdfa.html" shape="rect">examples/html5/EX-disambiguation-html5-rdfa.html</a>]</p></div></div><div class="div3"> <h4><a href="#contents" shape="rect"><img src="images/topOfPage.gif" align="right" height="26" width="26" title="Go to the table of contents." alt="Go to the table of contents."/></a><a name="Disambiguation-markup" id="Disambiguation-markup" shape="rect"/>6.10.3 Markup Declarations for Disambiguation</h4><dl><dt class="label">disambiguationRule</dt><dd><table class="scrap" summary="Scrap"><tbody><tr valign="baseline"><td rowspan="1" colspan="1"><a name="disambiguationRule" id="disambiguationRule" shape="rect"/>[107] </td><td rowspan="1" colspan="1"><code>disambiguationRule</code></td><td rowspan="1" colspan="1"> ::= </td><td rowspan="1" colspan="1"><code> element its:disambiguationRule { @@ -1988,7 +1996,7 @@ content of the element, <em>including</em> child elements and attributes. The default is that the language range is "*".</p><p>Implementations <a href="#rfc2119" shape="rect">MUST NOT</a> combine lists of language ranges from multiple rules or local attributes.</p><p>GLOBAL: The <a class="itsmarkup" href="#localeFilterRule" shape="rect">localeFilterRule</a> element contains the following:</p><ul><li><p>A required <a class="itsmarkup" href="#att.selector.attribute.selector" shape="rect">selector</a> attribute. It contains an <a href="#selectors" shape="rect">absolute selector</a> which selects the nodes to which this rule applies.</p></li><li><p>A required <a class="itsmarkup" href="#att.local.no-ns.attribute.localeFilterList" shape="rect">localeFilterList</a> attribute with a comma-separated list of - extended language ranges, or an empty string value.</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-locale-filter-selector-1" id="EX-locale-filter-selector-1" shape="rect"/>Example 54: The <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category expressed + extended language ranges, or an empty string value.</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-locale-filter-selector-1" id="EX-locale-filter-selector-1" shape="rect"/>Example 55: The <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category expressed globally</div><p>The <a class="itsmarkup" href="#localeFilterRule" shape="rect">localeFilterRule</a> element specifies that certain legal notice elements should only be shown in the specified locales. Note that using the extended language range "*-CA" in the <a class="itsmarkup" href="#att.local.no-ns.attribute.localeFilterList" shape="rect">localeFilterList</a> attribute would cover all @@ -2004,7 +2012,7 @@ <para>This legal notice is only for Canadian locales.</para> </legalnotice> </info> -</book></pre></div><p>[Source file: <a href="examples/xml/EX-locale-filter-selector-1.xml" shape="rect">examples/xml/EX-locale-filter-selector-1.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-locale-filter-selector-2" id="EX-locale-filter-selector-2" shape="rect"/>Example 55: The <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category expressed +</book></pre></div><p>[Source file: <a href="examples/xml/EX-locale-filter-selector-1.xml" shape="rect">examples/xml/EX-locale-filter-selector-1.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-locale-filter-selector-2" id="EX-locale-filter-selector-2" shape="rect"/>Example 56: The <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category expressed globally</div><p>The <a class="itsmarkup" href="#localeFilterRule" shape="rect">localeFilterRule</a> element specifies that editorial remarks should be removed from all translations.</p><div class="exampleInner"><pre xml:space="preserve"> <section @@ -2017,7 +2025,7 @@ <remark>Note: This section will be written later.</remark> </section></pre></div><p>[Source file: <a href="examples/xml/EX-locale-filter-selector-2.xml" shape="rect">examples/xml/EX-locale-filter-selector-2.xml</a>]</p></div><p>LOCAL: The following local markup is available for the <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category:</p><ul><li><p>A <a class="itsmarkup" href="#att.local.no-ns.attribute.localeFilterList" shape="rect">localeFilterList</a> attribute with a comma-separated list of extended - language ranges, or an empty string value.</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-locale-filter-attribute-1" id="EX-locale-filter-attribute-1" shape="rect"/>Example 56: The <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category expressed + language ranges, or an empty string value.</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-locale-filter-attribute-1" id="EX-locale-filter-attribute-1" shape="rect"/>Example 57: The <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category expressed locally</div><div class="exampleInner"><pre xml:space="preserve"> <book xmlns:its="http://www.w3.org/2005/11/its" > @@ -2056,7 +2064,7 @@ document. Examples of such resources are external images and audio or video files.</p></div><div class="div3"> <h4><a href="#contents" shape="rect"><img src="images/topOfPage.gif" align="right" height="26" width="26" title="Go to the table of contents." alt="Go to the table of contents."/></a><a name="externalresource-implementation" id="externalresource-implementation" shape="rect"/>6.14.2 Implementation</h4><p>The <a href="#externalresource" shape="rect">External Resource</a> data category can be expressed only with global rules. There is no inheritance. There is no default.</p><p>GLOBAL: The <a class="itsmarkup" href="#externalResourceRefRule" shape="rect">externalResourceRefRule</a> element contains the following:</p><ul><li><p>A required <a class="itsmarkup" href="#att.selector.attribute.selector" shape="rect">selector</a> attribute. It contains an <a href="#selectors" shape="rect">absolute selector</a> which selects the nodes to which this rule applies.</p></li><li><p>A required <a class="itsmarkup" href="#externalResourceRefRule.attributes" shape="rect">externalResourceRefPointer</a> attribute that contains a <a href="#selectors" shape="rect">relative selector</a> pointing to a node that provides the URI - of the external resource.</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-externalresource-1" id="EX-externalresource-1" shape="rect"/>Example 57: The <a class="itsmarkup" href="#externalResourceRefRule" shape="rect">externalResourceRefRule</a> element</div><p>The <a class="itsmarkup" href="#externalResourceRefRule" shape="rect">externalResourceRefRule</a> element expresses that the <code>imagedata</code>, + of the external resource.</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-externalresource-1" id="EX-externalresource-1" shape="rect"/>Example 58: The <a class="itsmarkup" href="#externalResourceRefRule" shape="rect">externalResourceRefRule</a> element</div><p>The <a class="itsmarkup" href="#externalResourceRefRule" shape="rect">externalResourceRefRule</a> element expresses that the <code>imagedata</code>, <code>audiodata</code> and <code>videodata</code> elements contain references to external resources. These references are expressed via a <code>fileref</code> attribute. The <a class="itsmarkup" href="#externalResourceRefRule.attributes" shape="rect">externalResourceRefPointer</a> attribute points to that attribute.</p><div class="exampleInner"><pre xml:space="preserve"> @@ -2083,19 +2091,19 @@ </warning> </textobject> </mediaobject> -</doc></pre></div><p>[Source file: <a href="examples/xml/EX-externalresource-1.xml" shape="rect">examples/xml/EX-externalresource-1.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-externalresource-2" id="EX-externalresource-2" shape="rect"/>Example 58: Two <a class="itsmarkup" href="#externalResourceRefRule" shape="rect">externalResourceRefRule</a> elements used for external resources associated +</doc></pre></div><p>[Source file: <a href="examples/xml/EX-externalresource-1.xml" shape="rect">examples/xml/EX-externalresource-1.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-externalresource-2" id="EX-externalresource-2" shape="rect"/>Example 59: Two <a class="itsmarkup" href="#externalResourceRefRule" shape="rect">externalResourceRefRule</a> elements used for external resources associated with HTML5 <code>video</code> elements</div><p>The two <a class="itsmarkup" href="#externalResourceRefRule" shape="rect">externalResourceRefRule</a> elements select the <code>src</code> and the <code>poster</code> attributes at HTML5 <code>video</code> elements. These attributes identify different external resources, and at the same time contain the references to these resources. For this reason, the <a class="itsmarkup" href="#externalResourceRefRule.attributes" shape="rect">externalResourceRefPointer</a> attributes point to the value of <code>src</code> and <code>poster</code> respectively. The underlying HTML5 document - is given in <a href="#EX-externalresource-html5-1" shape="rect">Example 59</a>.</p><div class="exampleInner"><pre xml:space="preserve"> + is given in <a href="#EX-externalresource-html5-1" shape="rect">Example 60</a>.</p><div class="exampleInner"><pre xml:space="preserve"> <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> <its:externalResourceRefRule selector="//html:video/@src" externalResourceRefPointer="."/> <its:externalResourceRefRule selector="//html:video/@poster" externalResourceRefPointer="."/> -</its:rules></pre></div><p>[Source file: <a href="examples/xml/EX-externalresource-2.xml" shape="rect">examples/xml/EX-externalresource-2.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-externalresource-html5-1" id="EX-externalresource-html5-1" shape="rect"/>Example 59: An HTML5 document that can be used for <a href="#EX-externalresource-2" shape="rect">Example 58</a>.</div><div class="exampleInner"><pre xml:space="preserve"><!DOCTYPE html>
 +</its:rules></pre></div><p>[Source file: <a href="examples/xml/EX-externalresource-2.xml" shape="rect">examples/xml/EX-externalresource-2.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-externalresource-html5-1" id="EX-externalresource-html5-1" shape="rect"/>Example 60: An HTML5 document that can be used for <a href="#EX-externalresource-2" shape="rect">Example 59</a>.</div><div class="exampleInner"><pre xml:space="preserve"><!DOCTYPE html>
 <html lang="en"> <head> <meta charset="utf-8"/> @@ -2138,7 +2146,7 @@ no inheritance. There is no default.</p><p>GLOBAL: The <a class="itsmarkup" href="#targetPointerRule" shape="rect">targetPointerRule</a> element contains the following:</p><ul><li><p>A required <a class="itsmarkup" href="#att.selector.attribute.selector" shape="rect">selector</a> attribute. It contains an <a href="#selectors" shape="rect">absolute selector</a> which selects the nodes to which this rule applies.</p></li><li><p>A required <a class="itsmarkup" href="#targetPointerRule.attributes" shape="rect">targetPointer</a> attribute. It contains a <a href="#selectors" shape="rect">relative selector</a> that points to the node for the target content corresponding to the selected source node.</p></li></ul><div class="note"><p class="prefix"><b>Note:</b></p><p>The source node and the target node may be of different types, but the target node must be able to contain the same content of the source node (e.g. an attribute node cannot be - the target node of a source node that is an element with children).</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-target-pointer-global-1" id="EX-target-pointer-global-1" shape="rect"/>Example 60: Defining the target location of a source content with the <a class="itsmarkup" href="#targetPointerRule" shape="rect">targetPointerRule</a> + the target node of a source node that is an element with children).</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-target-pointer-global-1" id="EX-target-pointer-global-1" shape="rect"/>Example 61: Defining the target location of a source content with the <a class="itsmarkup" href="#targetPointerRule" shape="rect">targetPointerRule</a> element</div><div class="exampleInner"><pre xml:space="preserve"> <file xmlns:its="http://www.w3.org/2005/11/its" > @@ -2175,7 +2183,7 @@ testing or debugging.</p></li></ul><div class="note"><p class="prefix"><b>Note:</b></p><ul><li><p>The <a href="#idvalue" shape="rect">Id Value</a> data category only provides for rules to be expressed at a global level. Locally, users are able to use <code>xml:id</code> (which is defined by XML) or an attribute specific to the - format in question (as in <a href="#EX-idvalue-attribute-1" shape="rect">Example 63</a>).</p></li><li><p>Applying the <a href="#idvalue" shape="rect">Id Value</a> data category to + format in question (as in <a href="#EX-idvalue-attribute-1" shape="rect">Example 64</a>).</p></li><li><p>Applying the <a href="#idvalue" shape="rect">Id Value</a> data category to <code>xml:id</code> attributes using global rules is not necessary, since <code>xml:id</code> is the recommended way to specify an identifier in XML.</p></li></ul></div></div><div class="div3"> @@ -2184,7 +2192,7 @@ constructs a string corresponding to the identifier of the node to which this rule applies should be located. The identifier <a href="#rfc-keywords" shape="rect">MUST</a> be unique at least within the document. If the attribute <code>xml:id</code> is present for - the selected node, the value of the <code>xml:id</code> attribute <a href="#rfc2119" shape="rect">MUST</a> take precedence over the <a class="itsmarkup" href="#idValueRule.attributes" shape="rect">idValue</a> value.</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-idvalue-element-1" id="EX-idvalue-element-1" shape="rect"/>Example 61: Pointing to an ID value with the <a class="itsmarkup" href="#idValueRule" shape="rect">idValueRule</a> element</div><p>The <a class="itsmarkup" href="#idValueRule" shape="rect">idValueRule</a> element indicates that the unique identifier for each + the selected node, the value of the <code>xml:id</code> attribute <a href="#rfc2119" shape="rect">MUST</a> take precedence over the <a class="itsmarkup" href="#idValueRule.attributes" shape="rect">idValue</a> value.</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-idvalue-element-1" id="EX-idvalue-element-1" shape="rect"/>Example 62: Pointing to an ID value with the <a class="itsmarkup" href="#idValueRule" shape="rect">idValueRule</a> element</div><p>The <a class="itsmarkup" href="#idValueRule" shape="rect">idValueRule</a> element indicates that the unique identifier for each <code><text></code> element is the value of the attribute <code>name</code> of its parent element.</p><div class="exampleInner"><pre xml:space="preserve"> <resources @@ -2204,7 +2212,7 @@ <pos>2, 1</pos> <trig>cancelAll</trig> </entry> -</resources></pre></div><p>[Source file: <a href="examples/xml/EX-idvalue-element-1.xml" shape="rect">examples/xml/EX-idvalue-element-1.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-idvalue-element-2" id="EX-idvalue-element-2" shape="rect"/>Example 62: Constructing ID values using the <a class="itsmarkup" href="#idValueRule" shape="rect">idValueRule</a> element.</div><p>The <a class="itsmarkup" href="#idValueRule.attributes" shape="rect">idValue</a> attribute allows to build composite values based on different +</resources></pre></div><p>[Source file: <a href="examples/xml/EX-idvalue-element-1.xml" shape="rect">examples/xml/EX-idvalue-element-1.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-idvalue-element-2" id="EX-idvalue-element-2" shape="rect"/>Example 63: Constructing ID values using the <a class="itsmarkup" href="#idValueRule" shape="rect">idValueRule</a> element.</div><p>The <a class="itsmarkup" href="#idValueRule.attributes" shape="rect">idValue</a> attribute allows to build composite values based on different attributes, element or event hard-coded text. Any of the String functions offered by XPath can be used. In the document below, the two elements <code><text></code> and <code><desc></code> are translatable, but they have only one corresponding @@ -2224,7 +2232,7 @@ <desc>The module cannot find the default settings file. You need to re-initialize the system.</desc> </msg> -</doc></pre></div><p>[Source file: <a href="examples/xml/EX-idvalue-element-2.xml" shape="rect">examples/xml/EX-idvalue-element-2.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-idvalue-attribute-1" id="EX-idvalue-attribute-1" shape="rect"/>Example 63: Using <code>xml:id</code> and <a class="itsmarkup" href="#idValueRule" shape="rect">idValueRule</a> +</doc></pre></div><p>[Source file: <a href="examples/xml/EX-idvalue-element-2.xml" shape="rect">examples/xml/EX-idvalue-element-2.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-idvalue-attribute-1" id="EX-idvalue-attribute-1" shape="rect"/>Example 64: Using <code>xml:id</code> and <a class="itsmarkup" href="#idValueRule" shape="rect">idValueRule</a> </div><p>When an <code>xml:id</code> attribute is present for a node selected by an <a class="itsmarkup" href="#idValueRule" shape="rect">idValueRule</a> element, the value of <code>xml:id</code> takes precedence over the value defined by the <a class="itsmarkup" href="#idValueRule" shape="rect">idValueRule</a> element. In the example below, the unique @@ -2248,7 +2256,7 @@ xml:space attribute. The default value is "default".</p></div><div class="div3"> <h4><a href="#contents" shape="rect"><img src="images/topOfPage.gif" align="right" height="26" width="26" title="Go to the table of contents." alt="Go to the table of contents."/></a><a name="preservespace-implementation" id="preservespace-implementation" shape="rect"/>6.17.2 Implementation</h4><p>The <a href="preservespace" shape="rect">Preserve Space</a> data category can be expressed with global rules, or locally using the <code>xml:space</code> attribute.</p><div class="note"><p class="prefix"><b>Note:</b></p><p>The <a href="preservespace" shape="rect">Preserve Space</a> data category is not applicable to - HTML5 documents because <code>xml:space</code> (and by extension <a href="preservespace" shape="rect">Preserve Space</a>) has no effect in documents parsed as text/html.</p></div><p>GLOBAL: The <a class="itsmarkup" href="#preserveSpaceRule" shape="rect">preserveSpaceRule</a> element contains the following:</p><ul><li><p>A required <a class="itsmarkup" href="#att.selector.attribute.selector" shape="rect">selector</a> attribute. It contains an <a href="#selectors" shape="rect">absolute selector</a> which selects the nodes to which this rule applies.</p></li><li><p>A required <a class="itsmarkup" href="#preserveSpaceRule.attributes" shape="rect">space</a> attribute with the value "default" or "preserve".</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-perservespace-global-1" id="EX-perservespace-global-1" shape="rect"/>Example 64: The <a href="preservespace" shape="rect">Preserve Space</a> data category expressed + HTML5 documents because <code>xml:space</code> (and by extension <a href="preservespace" shape="rect">Preserve Space</a>) has no effect in documents parsed as text/html.</p></div><p>GLOBAL: The <a class="itsmarkup" href="#preserveSpaceRule" shape="rect">preserveSpaceRule</a> element contains the following:</p><ul><li><p>A required <a class="itsmarkup" href="#att.selector.attribute.selector" shape="rect">selector</a> attribute. It contains an <a href="#selectors" shape="rect">absolute selector</a> which selects the nodes to which this rule applies.</p></li><li><p>A required <a class="itsmarkup" href="#preserveSpaceRule.attributes" shape="rect">space</a> attribute with the value "default" or "preserve".</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-perservespace-global-1" id="EX-perservespace-global-1" shape="rect"/>Example 65: The <a href="preservespace" shape="rect">Preserve Space</a> data category expressed globally</div><p>The preserveSpaceRule element specifies that whitespace in all verse elements must be treated literally.</p><div class="exampleInner"><pre xml:space="preserve"> <book @@ -2266,7 +2274,7 @@ And the mome raths outgrabe. </verse> </book></pre></div><p>[Source file: <a href="examples/xml/EX-preservespace-global-1.xml" shape="rect">examples/xml/EX-preservespace-global-1.xml</a>]</p></div><p>LOCAL: The <code>xml:space</code> attribute, as defined in section 2.10 of <a title="Extensible Markup Language (XML)
								1.0 (Fourth Edition)" href="#xml10spec" shape="rect">[XML 1.0]</a>, maps exactly to the Preserve Space data - category.</p><div class="exampleOuter"><div class="exampleHeader"><a name="EX-perservespace-local-1" id="EX-perservespace-local-1" shape="rect"/>Example 65: The <a href="preservespace" shape="rect">Preserve Space</a> data category expressed + category.</p><div class="exampleOuter"><div class="exampleHeader"><a name="EX-perservespace-local-1" id="EX-perservespace-local-1" shape="rect"/>Example 66: The <a href="preservespace" shape="rect">Preserve Space</a> data category expressed locally</div><p>The standard <code>xml:space</code> attribute specifies that the whitespace in the verse element must be treated literally.</p><div class="exampleInner"><pre xml:space="preserve"> <book @@ -2551,7 +2559,7 @@ <h2><a href="#contents" shape="rect"><img src="images/topOfPage.gif" align="right" height="26" width="26" title="Go to the table of contents." alt="Go to the table of contents."/></a><a name="its-schematron-constraints" id="its-schematron-constraints" shape="rect"/>E Checking ITS Markup Constraints With Schematron (Non-Normative)</h2><p> <em>This section is informative.</em> </p><p>Several constraints of ITS markup cannot be validated with ITS schemas. The following <a title="Rule-based validation -- Schematron" href="#schematron" shape="rect">[Schematron]</a> document allows for validating some of these - constraints.</p><div class="exampleOuter"><div class="exampleHeader"><a name="d3e7790" id="d3e7790" shape="rect"/>Example 66: Testing constraints in ITS markup</div><div class="exampleInner"><pre xml:space="preserve"> + constraints.</p><div class="exampleOuter"><div class="exampleHeader"><a name="d3e7813" id="d3e7813" shape="rect"/>Example 67: Testing constraints in ITS markup</div><div class="exampleInner"><pre xml:space="preserve"> <sch:schema xmlns:sch="http://www.ascc.net/xml/schematron" > <!-- Schematron document to test constraints for global and local ITS markup. @@ -2618,14 +2626,14 @@ <em>This section is informative.</em> </p><p>The following <a title="Namespace-based Validation Dispatching Language (NVDL)" href="#nvdl" shape="rect">[NVDL]</a> document allows validation of ITS markup which has been added to a host vocabulary. Only ITS elements and attributes are checked. Elements and - attributes of host language are ignored during validation against this NVDL document/schema.</p><div class="exampleOuter"><div class="exampleHeader"><a name="d3e7812" id="d3e7812" shape="rect"/>Example 67: NVDL schema for ITS</div><div class="exampleInner"><pre xml:space="preserve"><rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"> <namespace + attributes of host language are ignored during validation against this NVDL document/schema.</p><div class="exampleOuter"><div class="exampleHeader"><a name="d3e7835" id="d3e7835" shape="rect"/>Example 68: NVDL schema for ITS</div><div class="exampleInner"><pre xml:space="preserve"><rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"> <namespace ns="http://www.w3.org/2005/11/its"> <validate schema="its-elements.rng"/> </namespace> <namespace ns="http://www.w3.org/2005/11/its" match="attributes"> <validate schema="its-attributes.rng"/> </namespace> <anyNamespace> <allow/> </anyNamespace> </rules></pre></div><p> [Source file: <a href="schemas/its.nvdl" shape="rect">its.nvdl</a>]</p></div><p>The NVDL schema depends on the following two schemas:</p><span class="editor-note">[Ed. note: These schemas need to be provided in an updated draft.]</span><ul><li><p>RELAX NG schema for ITS elements</p></li><li><p>RELAX NG schema for ITS attributes</p></li></ul></div><div class="div1"> <h2><a href="#contents" shape="rect"><img src="images/topOfPage.gif" align="right" height="26" width="26" title="Go to the table of contents." alt="Go to the table of contents."/></a><a name="revisionlog" id="revisionlog" shape="rect"/>G Revision Log (Non-Normative)</h2><p id="changelog-since-20120731">The following log records major changes that have been made to this document since the <a href="http://www.w3.org/TR/2012/WD-its20-20120731/" shape="rect">ITS 2.0 Working Draft - 31 July 2012</a>.</p><ol class="depth1"><li><p>Added <a class="section-ref" href="#preservespace" shape="rect">Section 6.17: Preserve Space</a>.</p></li><li><p>Added <a class="section-ref" href="#idvalue" shape="rect">Section 6.16: Id Value</a>.</p></li><li><p>Added support for different query language and reworked whole XPath and CSS Selectors + 31 July 2012</a>.</p><ol class="depth1"><li><p>Added <a class="section-ref" href="#Disambiguation" shape="rect">Section 6.10: Disambiguation</a>.</p></li><li><p>Added <a class="section-ref" href="#preservespace" shape="rect">Section 6.17: Preserve Space</a>.</p></li><li><p>Added <a class="section-ref" href="#idvalue" shape="rect">Section 6.16: Id Value</a>.</p></li><li><p>Added support for different query language and reworked whole XPath and CSS Selectors integration.</p></li><li><p>Added a note about HTML5 and the attributes <a class="itsmarkup" href="#att.local.no-ns.attribute.dir" shape="rect">dir</a> and <a class="itsmarkup" href="#att.local.no-ns.attribute.translate" shape="rect">translate</a> to <a class="section-ref" href="#selection-local" shape="rect">Section 5.2.3: Local Selection in an XML Document</a>.</p></li><li><p>Added definition of <a class="itsmarkup" href="#param" shape="rect">param</a> element to <a class="section-ref" href="#selection-global" shape="rect">Section 5.2.1: Global, Rule-based Selection</a>.</p></li><li><p>Added <a class="section-ref" href="#target-pointer" shape="rect">Section 6.15: Target Pointer</a>.</p></li><li><p>Original Ruby markup model changed to HTML5 Ruby model.</p></li></ol><p id="changelog-since-20120626">The following log records major changes that have been made to this document since the <a href="http://www.w3.org/TR/2012/WD-its20-20120626/" shape="rect">ITS 2.0 Working Draft 26 June 2012</a>.</p><ol class="depth1"><li><p>Various editorial changes (non-normative references update, style & grammar fixes).</p></li><li><p>Made clarifications to <a class="section-ref" href="#out-of-scope" shape="rect">Section 1.5: Out of Scope</a>, <a class="section-ref" href="#design-decisions" shape="rect">Section 1.6: Important Design Principles</a>.</p></li><li><p>Added explanatory note on precedence and overriding in <a class="section-ref" href="#selection-precedence" shape="rect">Section 5.5: Precedence between Selections</a>.</p></li><li><p>Reordered some components in <a class="section-ref" href="#introduction" shape="rect">Section 1: Introduction</a>.</p></li><li><p>Restructured <a class="section-ref" href="#relation-to-its10-and-new-principles" shape="rect">Section 1.1: Relation to ITS 1.0 and New Principles</a>.</p></li><li><p>Added <a class="section-ref" href="#queryLanguage" shape="rect">Section 5.3.1: Choosing Query Language</a> as a stub.</p></li><li><p>Added <a class"section-ref" href="#LocaleFilter" shape="rect">Section 6.11: Locale Filter</a>.</p></li><li><p>Added <a class="section-ref" href="#domain" shape="rect">Section 6.9: Domain</a>.</p></li><li><p>Added <a class="section-ref" href="#usage-in-legacy-html" shape="rect">Section 1.4.1: Support for legacy HTML content</a>.</p></li><li><p>Added local markup in <a class="section-ref" href="#elements-within-text" shape="rect">Section 6.8: Elements Within Text</a>.</p></li><li><p>Added <a class="section-ref" href="#externalresource" shape="rect">Section 6.14: External Resource</a>.</p></li><li><p>Updated examples to use the <a class="itsmarkup" href="#att.version.attribute.version" shape="rect">version</a> attribute with the value
Received on Sunday, 19 August 2012 18:38:42 UTC