- From: CVS User alommel <cvsmail@w3.org>
- Date: Tue, 20 Nov 2012 09:26:32 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20 In directory gil:/tmp/cvs-serv2518 Modified Files: its20.html its20.odd Log Message: Added note on not using Allowed Characters to exclude HTML content [ACTION-262] and made some minor language edits in the section --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html 2012/11/20 09:03:22 1.234 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html 2012/11/20 09:26:31 1.235 @@ -3217,11 +3217,17 @@ <strong class="hl-tag" style="color: #000096"></html></strong></pre></div><p>[Source file: <a href="examples/html5/EX-mtConfidence-html5-local-1.html" shape="rect">examples/html5/EX-mtConfidence-html5-local-1.html</a>]</p></div></div></div><div class="div2"> <h3><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="allowedchars" id="allowedchars" shape="rect"/>6.21 Allowed Characters</h3><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="allowedchars-definition" id="allowedchars-definition" shape="rect"/>6.21.1 Definition</h4><p>The <a href="#allowedchars" shape="rect">Allowed Characters</a> data category is used to - specify what characters are allowed in a given content.</p><p>This data category can be used for various purposes, including the following - examples:</p><ul><li><p>Limit the characters which may be used in the UI of a game because of some - special font restrictions.</p></li><li><p>Prevent illegal characters to be entered for text content that are file or - directory names.</p></li><li><p>Control what characters can be used when translating examples of login name in a - content.</p></li></ul><p>The set of characters that are allowed is specified using a regular expression. That + specify what characters are allowed in a given piece of content.</p><p>This data category can be used for various purposes, including the following + examples:</p><ul><li><p>Limiting the characters that may be used in the UI of a game due to font + restrictions.</p></li><li><p>Preventing illegal characters from being entered as text content that represents + file or directory names.</p></li><li><p>Controlling what characters can be used when translating examples of a login + name in content.</p></li></ul><div class="note"><p class="prefix"><b>Note:</b></p><p>The <a href="#allowedchars" shape="rect">Allowed Characters</a> data category is not + intended to disallow HTML markup. The purpose is to restrict the content to various + characters only, e.g., when the content is to be used for URL or filename + generation. In most Content Management Systems, content is divided into several + fields, some of which may be restricted to plain text, while in other fields HTML + fragments may be allowed. Enforcing such restrictions is outside the scope of this + data category.</p></div><p>The set of characters that are allowed is specified using a regular expression. That is, each character in the selected content <a href="#rfc-keywords" shape="rect">MUST</a> be included in the set specified by the regular expression.</p><p>The regular expression is a character class construct as defined in the section <a href="http://www.w3.org/TR/xmlschema-2/#charcter-classes" shape="rect">Character Classes</a> of XML Schema <a title="XML Schema Part 2:
 Datatypes Second Edition" href="#xmlschema2" shape="rect">[XML Schema Part 2]</a>, with the assumption that the @@ -3743,7 +3749,7 @@ <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="d0e10090" id="d0e10090" shape="rect"/>Example 105: Testing constraints in ITS markup</div><div class="exampleInner"><pre xml:space="preserve"><strong class="hl-tag" style="color: #000096"><schema</strong> <span class="hl-attribute" style="color: #F5844C">xmlns</span>=<span class="hl-value" style="color: #993300">"http://www.ascc.net/xml/schematron"</span><strong class="hl-tag" style="color: #000096">></strong> + constraints.</p><div class="exampleOuter"><div class="exampleHeader"><a name="d0e10096" id="d0e10096" shape="rect"/>Example 105: Testing constraints in ITS markup</div><div class="exampleInner"><pre xml:space="preserve"><strong class="hl-tag" style="color: #000096"><schema</strong> <span class="hl-attribute" style="color: #F5844C">xmlns</span>=<span class="hl-value" style="color: #993300">"http://www.ascc.net/xml/schematron"</span><strong class="hl-tag" style="color: #000096">></strong> <em class="hl-comment" style="color: silver"><!-- Schematron document to test constraints for global and local ITS markup. For ITS markup definitions, see http://www.w3.org/TR/its/ . --></em> <strong class="hl-tag" style="color: #000096"><ns</strong> <span class="hl-attribute" style="color: #F5844C">prefix</span>=<span class="hl-value" style="color: #993300">"its"</span> <span class="hl-attribute" style="color: #F5844C">uri</span>=<span class="hl-value" style="color: #993300">"http://www.w3.org/2005/11/its"</span><strong class="hl-tag" style="color: #000096">/></strong> @@ -3790,7 +3796,7 @@ </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="d0e10112" id="d0e10112" shape="rect"/>Example 106: NVDL schema for ITS</div><div class="exampleInner"><pre xml:space="preserve"><span class="hl-directive" style="color: maroon"><?xml version="1.0" encoding="UTF-8"?></span> + this NVDL document/schema.</p><div class="exampleOuter"><div class="exampleHeader"><a name="d0e10118" id="d0e10118" shape="rect"/>Example 106: NVDL schema for ITS</div><div class="exampleInner"><pre xml:space="preserve"><span class="hl-directive" style="color: maroon"><?xml version="1.0" encoding="UTF-8"?></span> <strong class="hl-tag" style="color: #000096"><rules</strong> <span class="hl-attribute" style="color: #F5844C">xmlns</span>=<span class="hl-value" style="color: #993300">"http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"</span><strong class="hl-tag" style="color: #000096">></strong> <strong class="hl-tag" style="color: #000096"><namespace</strong> <span class="hl-attribute" style="color: #F5844C">ns</span>=<span class="hl-value" style="color: #993300">"http://www.w3.org/2005/11/its"</span><strong class="hl-tag" style="color: #000096">></strong> <strong class="hl-tag" style="color: #000096"><validate</strong> <span class="hl-attribute" style="color: #F5844C">schema</span>=<span class="hl-value" style="color: #993300">"its20-elements.rng"</span><strong class="hl-tag" style="color: #000096">/></strong> --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd 2012/11/20 09:03:22 1.232 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd 2012/11/20 09:26:32 1.233 @@ -4530,17 +4530,26 @@ <div xml:id="allowedchars-definition"> <head>Definition</head> <p>The <ref target="#allowedchars">Allowed Characters</ref> data category is used to - specify what characters are allowed in a given content.</p> + specify what characters are allowed in a given piece of content.</p> <p>This data category can be used for various purposes, including the following examples:</p> <list type="unordered"> - <item>Limit the characters which may be used in the UI of a game because of some - special font restrictions.</item> - <item>Prevent illegal characters to be entered for text content that are file or - directory names.</item> - <item>Control what characters can be used when translating examples of login name in a - content.</item> + <item>Limiting the characters that may be used in the UI of a game due to font + restrictions.</item> + <item>Preventing illegal characters from being entered as text content that represents + file or directory names.</item> + <item>Controlling what characters can be used when translating examples of a login + name in content.</item> </list> + <note> + <p>The <ref target="#allowedchars">Allowed Characters</ref> data category is not + intended to disallow HTML markup. The purpose is to restrict the content to various + characters only, e.g., when the content is to be used for URL or filename + generation. In most Content Management Systems, content is divided into several + fields, some of which may be restricted to plain text, while in other fields HTML + fragments may be allowed. Enforcing such restrictions is outside the scope of this + data category.</p> + </note> <p>The set of characters that are allowed is specified using a regular expression. That is, each character in the selected content <ref target="#rfc-keywords">MUST</ref> be included in the set specified by the regular expression.</p>
Received on Tuesday, 20 November 2012 09:26:41 UTC