dita — archive
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
— [Date Index]
| [Thread Index]
| [Month Index]
| [List Home]
Re: Ambiguous content model in DITA 2.0
I agree with Robert’s analysis—his proposed change looks like the right one to me.
Cheers, E. _____________________________________________ Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.com LinkedIn Twitter YouTube Facebook
From: [email protected] <[email protected]> on behalf of Robert Anderson <[email protected]>
Date: Monday, August 1, 2022 at 2:30 PM
To: [email protected] <[email protected]>
Subject: [dita] Fw: Ambiguous content model in DITA 2.0 [External Email] Hi everyone, Passing along a reported issue in the grammar files for TC discussion. Thanks, Robert
From: Patrick Baker <[email protected]> Sent: Saturday, July 30, 2022 9:58 AM
To: Robert Anderson <[email protected]>
Subject: [External] : Ambiguous content model in DITA 2.0 Hi Robert, According to OmniMark, the following content model is ambiguous: <!ENTITY % messagepanel.content "( (%data;)*, (%typeofhazard;), ( ((%consequence;)*, (%howtoavoid;)+) ((%howtoavoid;)+, (%consequence;)*) ),(%hazardsymbol;)* )" A content model must not be ambiguous. For the declared element "messagepanel", the element "howtoavoid" is ambiguous in the content model. At line 132 of entity hazard-d-def In entity file://${ROOT_PATH}/schema/OASIS/DITA/2.0/org.oasis-open.dita.v2_0/dtd/base/hazardstatementDomain.mod Included from entity file://${ROOT_PATH}/schema/OASIS/DITA/2.0/org.oasis-open.dita.techcomm.v2_0/dtd/technicalContent/ditabase.dtd The fix would be straight forward... Just change one * to a +. It will match the same XML, but will not be ambiguous. <!ENTITY % messagepanel.content "( (%data;)*, (%typeofhazard;), ( ((%consequence;) + , (%howtoavoid;)+) ((%howtoavoid;)+, (%consequence;)*) ),(%hazardsymbol;)* )" I'd recommend a similar change in the RNG. regards, Patrick
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
— [Date Index]
| [Thread Index]
| [Month Index]
| [List Home]