OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

dita-comment message

[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


Hi,

Probably when I added initially that rule we used pre-ISO Schemaron and in Schematron version 1.5/1.6 pattern has a @name attribute, and that was changed to @id in ISO Schematron.

These are just a few examples I included in the original Relax NG schemas for DITA to show that we can have additional rules placed within the modules and thus including a module, a domain for example, can bring in the rules for that domain, automatically.

Most probably these example patterns are not that relevant, but some spec rules can be implemented with Schematron, for example co-occurence constraints from the spec like when we have note/@type="other" then the @othertype attribute should be also specified.

Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 8/22/18 8:05 PM, Eliot Kimber wrote:
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.

--

Eliot Kimber

http://contrext.com

*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 (&lt;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_abbrev=dita Join OASIS: http://www.oasis-open.org/join/



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]