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


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]