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
+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
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
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
+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
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
|