[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]