[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Fw: [docbook-comment] Found a mistake in the Schematron of DocBook 5.1b7
Another item for our Wednesday DocBook TC meeting. Bob Stayton Sagehill Enterprises bobs@sagehill.net----- Original Message ----- From: "Hussein Shafie" <hussein@xmlmind.com>
To: <docbook-comment@lists.oasis-open.org> Sent: Monday, August 13, 2012 10:37 AM Subject: [docbook-comment] Found a mistake in the Schematron of DocBook 5.1b7
In some cases, the logic of s:assert is inverted: --- <s:pattern> <s:title>XLink locator placement</s:title> <s:rule context="*[@xlink:type='locator']"><s:assert test="not(parent::*[@xlink:type='extended'])">An XLink locator type element must occur as the direct child of an XLink extended type element.</s:assert></s:rule> </s:pattern> <s:pattern> <s:title>XLink resource placement</s:title> <s:rule context="*[@xlink:type='resource']"><s:assert test="not(parent::*[@xlink:type='extended'])">An XLink resource type element must occur as the direct child of an XLink extended type element.</s:assert></s:rule> </s:pattern> <s:pattern> <s:title>XLink title placement</s:title> <s:rule context="*[@xlink:type='title']"><s:assert test="not(parent::*[@xlink:type='extended']) and not(parent::*[@xlink:type='locator']) and not(parent::*[@xlink:type='arc'])">An XLink title type element must occur as the direct child of an XLink extended, locator, or arc type element.</s:assert></s:rule> </s:pattern> --- should read: --- <s:pattern> <s:title>XLink locator placement</s:title> <s:rule context="*[@xlink:type='locator']"><s:assert test="parent::*[@xlink:type='extended']">An XLink locator type element must occur as the direct child of an XLink extended type element.</s:assert></s:rule> </s:pattern> <s:pattern> <s:title>XLink resource placement</s:title> <s:rule context="*[@xlink:type='resource']"><s:assert test="parent::*[@xlink:type='extended']">An XLink resource type element must occur as the direct child of an XLink extended type element.</s:assert></s:rule> </s:pattern> <s:pattern> <s:title>XLink title placement</s:title> <s:rule context="*[@xlink:type='title']"><s:assert test="parent::*[@xlink:type='extended'] or parent::*[@xlink:type='locator'] or parent::*[@xlink:type='arc']">An XLink title type element must occur as the direct child of an XLink extended, locator, or arc type element.</s:assert></s:rule> </s:pattern> ---The above mistake is found in both docbook.sch and assembly.sch (didn't look at the other .sch files).-- This publicly archived list offers a means to provide input to the OASIS DocBook TC. In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting. Subscribe: docbook-comment-subscribe@lists.oasis-open.org Unsubscribe: docbook-comment-unsubscribe@lists.oasis-open.org List help: docbook-comment-help@lists.oasis-open.org List archive: http://lists.oasis-open.org/archives/docbook-comment/ Feedback License: http://www.oasis-open.org/who/ipr/feedback_license.pdf List Guidelines: http://www.oasis-open.org/maillists/guidelines.php Committee: http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=docbook Join OASIS: http://www.oasis-open.org/join/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]