- From: CVS User jkosek <cvsmail@w3.org>
- Date: Tue, 15 Jan 2013 10:17:50 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas In directory gil:/tmp/cvs-serv30337/schemas Modified Files: its20.sch Log Message: Implemented ACTION-382 in Schematron (changed locations where version can be specified) --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20.sch 2012/12/28 19:37:25 1.2 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20.sch 2013/01/15 10:17:50 1.3 @@ -4,9 +4,12 @@ <ns uri="http://www.w3.org/1999/xlink" prefix="xlink"/> <pattern> <title>Indicating the Version of ITS</title> - <rule context="/*[//*[@its:*] | //its:*]"> - <assert test="@its:version | //its:rules/@version">The version is indicated by the ITS version attribute. This attribute is mandatory for the rules element, where it MUST be in no namespace. If there is no rules element in an XML document, a prefixed ITS version attribute (e.g. its:version) MUST be provided at the root element of the document.</assert> - <assert test="if (@its:version and //its:rules/@version) then //its:rules/@version = @its:version else true()"> If there is both a version attribute at the root element and a rules element in a document, they MUST NOT specify different versions.</assert> + <rule context="*[@its:*]"> + <assert test="ancestor-or-self::*/@its:version | //its:rules/@version">The version is indicated by the ITS version attribute. This attribute is mandatory for the rules element, where it MUST be in no namespace. If there is no rules element in an XML document, a prefixed ITS version attribute (e.g. its:version) MUST on the element where the ITS markup is used, or on one of its ancestors.</assert> + </rule> + <rule context="*[@its:version]"> + <assert test="if (@its:version and //its:rules/@version) then //its:rules/@version = @its:version else true()">There MUST NOT be two different versions of ITS in the same document.</assert> + <assert test="every $v in //*/@its:version satisfies $v = @its:version">There MUST NOT be two different versions of ITS in the same document.</assert> </rule> </pattern> <pattern>
Received on Tuesday, 15 January 2013 10:17:51 UTC