[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [dita-comment] Bug in DITA 1.3 embedded Schematron rule
This is indeed a bug.
Â
However, Iâm wondering if the embedded schematron rules should have been included at all. I only find two in the entire 1.3 RNG set (this one for UL and another one for filepath.
Â
Probably those are inappropriate in the OASIS-provided grammar.
Â
Cheers,
Â
E.
Â
Â
From: Stefan Eike <stefan.eike@mailbox.org>
Date: Wednesday, August 22, 2018 at 3:30 AM
To: <dita-comment@lists.oasis-open.org >
Subject: [dita-comment] Bug in DITA 1.3 embedded Schematron ruleÂ
Hi,
there is a tiny bug in the DITA 1.3 RelaxNG schemas. I found it when creating a specialization of the <ul> element. Oxygen XML then told me, that the attribute 'name' is not allowed to appear in element <sch:pattern>. The <ul> element has an embedded Schematron rule, which is a very cool feature BTW. The attribute "name" should be renamed to "id".
Â
commonElementsMod.rng
<element name="ul" dita:longName="Unordered List">
ÂÂÂ <a:documentation>
ÂÂÂÂÂÂÂ In an unordered list (<ul>), the order of the list items is not significant.
ÂÂ Â ÂÂ List items are typically styled on output with a "bullet" character, depending on nesting
ÂÂÂÂÂÂÂ level. Category: Body elements
ÂÂÂ </a:documentation>
ÂÂÂ <sch:pattern name="atLeastTwoChildren">
ÂÂÂÂÂÂÂ <sch:rule context="ul">
ÂÂÂÂÂÂÂÂÂÂÂ <sch:assert test="count(*) > 1" role="warning">
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ Please make sure you have at least 2 items for this list!
ÂÂÂÂÂÂÂÂÂÂÂ </sch:assert>
ÂÂÂÂÂÂÂ </sch:rule>
ÂÂÂ </sch:pattern>
ÂÂÂ <ref name="ul.attlist"/>
ÂÂÂ <ref name="ul.content"/>
</element>Â
Thank you for your making DITA.
Greetings
Stefan-- This publicly archived list offers a means to provide input to the OASIS Darwin Information Typing Architecture (DITA) 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: dita-comment-subscribe@lists.
oasis-open.org Unsubscribe: dita-comment-unsubscribe@lists.oasis-open.org List help: dita-comment-help@lists.oasis-open.org List archive: http://lists.oasis-open.org/archives/dita-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_ Join OASIS: http://www.oasis-open.org/abbrev=dita join/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]