[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [dita] Implementing a constraint with the RNG expression of the DITA 1.3 standard
We should definitely have examples of RNG constraints. The constraint modules shipped with DITA 1.3 demonstrate the general techniques. But fundamentally it's the same as for DTDs: you override the base declarations of the patterns. Note that the current (unreleased but committed) state of the RNG to DTD generator automatically translates RNG <notAllowed> into the equivalent DTD entity declaration overrides as required for wholesale constraint of things defined in commonElements or topic.mod. This makes defining this type of constraint much easier since it does a whole bunch of cutting and pasting for you and then automatically omits those things that you've marked as not allowed. Should I ever be able to actually get this code a releasable state it will very convenient... Cheers, E. -- Eliot Kimber http://contrext.com ïOn 7/2/19, 12:33 PM, "Kristen James Eberlein" <dita@lists.oasis-open.org on behalf of kris@eberleinconsulting.com> wrote: Yes, constraints can be expressed in RNG; RNG is the normative form of the DITA grammar files. In fact, constraints are easier to develop in in RNG than DTD! The spec only contains examples of constraints in DTD, rather than RNG, because that is what we had available and the information that many people wanted. TC members, should we consider reworking our constraints examples to be in RNG rather than DTD? Or adding parallel examples with RNG code? Best, Kris Kristen James Eberlein Chair, OASIS DITA Technical Committee Principal consultant, Eberlein Consulting www.eberleinconsulting.com <http://www.eberleinconsulting.com> +1 919 622-1501; kriseberlein (skype) On 7/2/2019 1:26 PM, Graydon Saunders wrote: In terms of the mechanics, certainly, and I will go post there. In terms of whether it is possible to support constraints -- as distinct from specializations -- in the RNG implementation, it might be of interest to the technical committee. Thanks! Graydon Saunders | Publishing Solutions Developer | Precision Content Direct: +1 (647)265-8500 x106| Email: graydon@precisioncontent.com | www.precisioncontent.com <https://www.precisioncontent.com> Unlock the Knowledge in Your Enterpriseâ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Please notify us by return email if you have received this email in error. Â2019, Precision Content Authoring Solutions Inc, Mississauga, Ontario, Canada ________________________________________ From: dita@lists.oasis-open.org <dita@lists.oasis-open.org> <mailto:dita@lists.oasis-open.org> on behalf of Kristen James Eberlein <kris@eberleinconsulting.com> <mailto:kris@eberleinconsulting.com> Sent: 02 July 2019 13:22 To: dita@lists.oasis-open.org Subject: Re: [dita] Implementing a constraint with the RNG expression of the DITA 1.3 standard Graydon, this is perhaps a better post for the dita-users list. The DITA TC list is for discussing the work of the DITA Technical Committee. Best, Kris Kristen James Eberlein Chair, OASIS DITA Technical Committee Principal consultant, Eberlein Consulting www.eberleinconsulting.com <http://www.eberleinconsulting.com> +1 919 622-1501; kriseberlein (skype) On 7/2/2019 12:35 PM, Graydon Saunders wrote: Hello -- Using the RNG implementation of the DITA 1.3 standard, I want to constrain the li element so that its content model permits only a p element. I want to do this in such a way that as domain specializations are added to document definitions, those domain specializations will acquire this constraint without any further changes being required. How should I do this? Thanks! Graydon Saunders | Publishing Solutions Developer | Precision Content Direct: +1 (647)265-8500 x106| Email: graydon@precisioncontent.com | www.precisioncontent.com <https://www.precisioncontent.com> Unlock the Knowledge in Your Enterpriseâ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Please notify us by return email if you have received this email in error. Â2019, Precision Content Authoring Solutions Inc, Mississauga, Ontario, Canada
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]