<?xml version="1.0" encoding="UTF-8"?> <!-- XML EXCHANGE TABLE MODEL DECLARATION MODULE (Customized for Wiley3G ) $Id: oasisExchangeTable.rnc,v 1.8 2008/09/05 07:29:45 alexb Exp $ --> <grammar xmlns:wng="http://www.wiley.com/namespaces/wiley" xmlns:aux="http://www.wiley.com/namespaces/wiley/aux" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary=""> <!-- This set of declarations defines the XML version of the Exchange Table Model as of the date shown in the Formal Public Identifier (FPI) for this entity. This set of declarations may be referred to using a public external entity declaration and reference as shown in the following three lines: <!ENTITY % calstblx PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN"> %calstblx; If various parameter entities used within this set of declarations are to be given non-default values, the appropriate declarations should be given before calling in this package (i.e., before the "%calstblx;" reference). --> <!-- The motivation for this XML version of the Exchange Table Model is simply to create an XML version of the SGML Exchange Table Model. By design, no effort has been made to "improve" the model. This XML version incorporates the logical bare minimum changes necessary to make the Exchange Table Model a valid XML DTD. It has been modified slightly for use in the combined HTML/CALS models supported by DocBook V4.3 and later. --> <!-- The XML version of the Exchange Table Model differs from the SGML version in the following ways: The following parameter entities have been removed: - tbl.table.excep, tbl.hdft.excep, tbl.row.excep, tbl.entry.excep There are no exceptions in XML. The following normative statement is made in lieu of exceptions: the exchange table model explicitly forbids a table from occurring within another table. If the content model of an entry includes a table element, then this cannot be enforced by the DTD, but it is a deviation from the exchange table model to include a table within a table. - tbl.hdft.name, tbl.hdft.mdl, tbl.hdft.excep, tbl.hdft.att The motivation for these elements was to change the table header/footer elements. Since XML does not allow element wng:declarations to contain name groups, and the exchange table model does not allow a table to contain footers, the continued presence of these attributes seems unnecessary. The following parameter entity has been added: - tbl.thead.att This entity parameterizes the attributes on thead. It replaces the tbl.hdft.att parameter entity. Other miscellaneous changes: - Tag ommission indicators have been removed - Comments have been removed from declarations - NUMBER attributes have been changed to NMTOKEN - NUTOKEN attributes have been to changed to NMTOKEN - Removed the grouping characters around the content model parameter entry for the 'entry' element. This is necessary so that an entry can contain #PCDATA and be defined as an optional, repeatable OR group beginning with #PCDATA. --> <!-- This entity includes a set of element wng:and attribute declarations that partially defines the Exchange table model. However, the model is not well-defined without the accompanying natural language description of the semantics (meanings) of these various elements, attributes, and attribute values. The semantic writeup, also available from SGML Open, should be used in conjunction with this entity. --> <!-- In order to use the Exchange table model, various parameter entity declarations are required. A brief description is as follows: ENTITY NAME WHERE USED WHAT IT IS %yesorno In ATTLIST of: An attribute declared value almost all elements for a "boolean" attribute %paracon In content model of: The "text" (logical content) <entry> of the model group for <entry> %titles In content model of: The "title" part of the model table element wng: group for the table element %tbl.table.name In declaration of: The name of the "table" table element wng: element %tbl.table-titles.mdl In content model of: The model group for the title table elements part of the content model for table element %tbl.table.mdl In content model of: The model group for the content table elements model for table element, often (and by default) defined in terms of %tbl.table-titles.mdl and tgroup %tbl.table.att In ATTLIST of: Additional attributes on the table element wng: table element %bodyatt In ATTLIST of: Additional attributes on the table element wng: table element wng:(for backward compatibility with the SGML model) %tbl.tgroup.mdl In content model of: The model group for the content <tgroup> model for <tgroup> %tbl.tgroup.att In ATTLIST of: Additional attributes on the <tgroup> <tgroup> element %tbl.thead.att In ATTLIST of: Additional attributes on the <thead> <thead> element %tbl.tbody.att In ATTLIST of: Additional attributes on the <tbody> <tbody> element %tbl.colspec.att In ATTLIST of: Additional attributes on the <colspec> <colspec> element %tbl.row.mdl In content model of: The model group for the content <row> model for <row> %tbl.row.att In ATTLIST of: Additional attributes on the <row> <row> element %tbl.entry.mdl In content model of: The model group for the content <entry> model for <entry> %tbl.entry.att In ATTLIST of: Additional attributes on the <entry> <entry> element This set of declarations will use the default definitions shown below for any of these parameter entities that are not declared before this set of declarations is referenced. --> <!-- These definitions are not directly related to the table model, but are used in the default CALS table model and may be defined elsewhere (and prior to the inclusion of this table module) in the referencing DTD. --> <define name="yesorno"> <data type="token"/> </define> <!-- no if zero(s), yes if any other value --> <!-- default for use in entry content --> <!-- The parameter entities as defined below change and simplify the CALS table model as published (as part of the Example DTD) in MIL-HDBK-28001. The resulting simplified DTD has support from the SGML Open vendors and is therefore more interoperable among different systems. These following declarations provide the Exchange default definitions for these entities. However, these entities can be redefined (by giving the appropriate parameter entity declaration(s) prior to the reference to this Table Model declaration set entity) to fit the needs of the current application. Note, however, that changes may have significant effect on the ability to interchange table information. These changes may manifest themselves in useability, presentation, and possible structure information degradation. --> <!-- Changes for WileyML 3G v2.0 (Aug 2011) 1. <entry>: changed pattern.para.or.paras to pattern.para.or.paras.or.ftf (allowed figures, tabulars, features) --> <define name="tbl.table-titles.mdl"> <ref name="title"/> </define> <define name="tbl.table-main.mdl"> <oneOrMore> <ref name="tgroup"/> </oneOrMore> </define> <define name="tbl.table.mdl"> <choice> <ref name="tbl.table-titles.mdl"/> <ref name="tbl.table-main.mdl"/> </choice> </define> <define name="tbl.table.att"> <optional> <attribute name="pgwide"> <ref name="yesorno"/> </attribute> </optional> </define> <define name="bodyatt"> <empty/> </define> <define name="tbl.tgroup.mdl"> <zeroOrMore> <ref name="colspec"/> </zeroOrMore> <optional> <ref name="thead"/> </optional> <ref name="tbody"/> </define> <define name="tbl.tgroup.att"> <empty/> </define> <define name="tbl.thead.att"> <empty/> </define> <define name="tbl.tbody.att"> <empty/> </define> <define name="tbl.colspec.att"> <empty/> </define> <define name="tbl.row.mdl"> <oneOrMore> <ref name="entry"/> </oneOrMore> </define> <define name="tbl.row.att"> <empty/> </define> <define name="tbl.entry.att"> <empty/> </define> <define name="tbl.frame.attval"> <choice> <value>top</value> <value>bottom</value> <value>topbot</value> <value>all</value> <value>sides</value> <value>none</value> </choice> </define> <define name="tbl.tbody.mdl"> <oneOrMore> <ref name="row"/> </oneOrMore> </define> <!-- ===== Element and attribute declarations follow. ===== --> <!-- Default declarations previously defined in this entity and referenced below include: ENTITY % tbl.table.name "table" ENTITY % tbl.table-titles.mdl "%titles;," ENTITY % tbl.table.mdl "%tbl.table-titles; tgroup+" ENTITY % tbl.table.att " pgwide %yesorno; #IMPLIED " --> <define name="table"> <element name="wng:table"> <aux:desc aux:cat="oasis">Part of Wiley's customized <ulink xmlns="" url="http://www.oasis-open.org/specs/tm9901.html#AEN142">OASIS Exchange Table Model</ulink> +++.</aux:desc> <ref name="attlist.table"/> <ref name="tbl.table.mdl"/> </element> </define> <define name="attlist.table" combine="interleave"> <interleave> <optional> <attribute name="frame"> <ref name="tbl.frame.attval"/> </attribute> </optional> <optional> <attribute name="colsep"> <ref name="yesorno"/> </attribute> </optional> <optional> <attribute name="rowsep"> <ref name="yesorno"/> </attribute> </optional> <ref name="tbl.table.att"/> <ref name="bodyatt"/> </interleave> </define> <!-- Default declarations previously defined in this entity and referenced below include: ENTITY % tbl.tgroup.mdl "colspec*,thead?,tbody" ENTITY % tbl.tgroup.att "" --> <define name="tgroup"> <element name="wng:tgroup"> <aux:desc aux:cat="oasis">Part of Wiley's customized <ulink xmlns="" url="http://www.oasis-open.org/specs/tm9901.html#AEN282">OASIS Exchange Table Model</ulink> +++.</aux:desc> <ref name="attlist.tgroup"/> <ref name="tbl.tgroup.mdl"/> </element> </define> <define name="attlist.tgroup" combine="interleave"> <interleave> <attribute name="cols"/> <optional> <attribute name="colsep"> <ref name="yesorno"/> </attribute> </optional> <optional> <attribute name="rowsep"> <ref name="yesorno"/> </attribute> </optional> <optional> <attribute name="align"> <choice> <value>left</value> <value>right</value> <value>center</value> <value>justify</value> <value>char</value> </choice> </attribute> </optional> <ref name="tbl.tgroup.att"/> </interleave> </define> <!-- Default declarations previously defined in this entity and referenced below include: ENTITY % tbl.colspec.att "" --> <define name="colspec"> <element name="wng:colspec"> <aux:desc aux:cat="oasis">Information about a column in a table, part of Wiley's customized <ulink xmlns="" url="http://www.oasis-open.org/specs/tm9901.html#AEN446">OASIS Exchange Table Model</ulink> +++.</aux:desc> <ref name="attlist.colspec"/> <empty/> </element> </define> <define name="attlist.colspec" combine="interleave"> <interleave> <optional> <attribute name="colnum"/> </optional> <optional> <attribute name="colname"/> </optional> <optional> <attribute name="colwidth"/> </optional> <optional> <attribute name="colsep"> <ref name="yesorno"/> </attribute> </optional> <optional> <attribute name="rowsep"> <ref name="yesorno"/> </attribute> </optional> <optional> <attribute name="align"> <choice> <value>left</value> <value>right</value> <value>center</value> <value>justify</value> <value>char</value> </choice> </attribute> </optional> <optional> <attribute name="char"/> </optional> <optional> <attribute name="charoff"/> </optional> <ref name="tbl.colspec.att"/> </interleave> </define> <!-- Default declarations previously defined in this entity and referenced below include: ENTITY % tbl.thead.att "" --> <define name="thead"> <element name="wng:thead"> <aux:desc aux:cat="oasis">Part of Wiley's customized <ulink xmlns="" url="http://www.oasis-open.org/specs/tm9901.html#AEN649">OASIS Exchange Table Model</ulink> +++.</aux:desc> <ref name="attlist.thead"/> <oneOrMore> <ref name="row"/> </oneOrMore> </element> </define> <define name="attlist.thead" combine="interleave"> <interleave> <optional> <attribute name="valign"> <choice> <value>top</value> <value>middle</value> <value>bottom</value> </choice> </attribute> </optional> <ref name="tbl.thead.att"/> </interleave> </define> <!-- Default declarations previously defined in this erntity and referenced below include: ENTITY % tbl.tbody.att "" --> <define name="tbody"> <element name="wng:tbody"> <aux:desc aux:cat="oasis">Part of Wiley's customized <ulink xmlns="" url="http://www.oasis-open.org/specs/tm9901.html#AEN698">OASIS Exchange Table Model</ulink> +++.</aux:desc> <ref name="attlist.tbody"/> <ref name="tbl.tbody.mdl"/> </element> </define> <define name="attlist.tbody" combine="interleave"> <interleave> <optional> <attribute name="valign"> <choice> <value>top</value> <value>middle</value> <value>bottom</value> </choice> </attribute> </optional> <ref name="tbl.tbody.att"/> </interleave> </define> <!-- Default declarations previously defined in this entity and referenced below include: ENTITY % tbl.row.mdl "entry+" ENTITY % tbl.row.att "" --> <define name="row"> <element name="wng:row"> <aux:desc aux:cat="oasis">Part of Wiley's customized <ulink xmlns="" url="http://www.oasis-open.org/specs/tm9901.html#AEN741">OASIS Exchange Table Model</ulink> +++.</aux:desc> <ref name="attlist.row"/> <ref name="tbl.row.mdl"/> </element> </define> <define name="attlist.row" combine="interleave"> <interleave> <optional> <attribute name="rowsep"> <ref name="yesorno"/> </attribute> </optional> <optional> <attribute name="valign"> <choice> <value>top</value> <value>middle</value> <value>bottom</value> </choice> </attribute> </optional> <ref name="tbl.row.att"/> </interleave> </define> <!-- Default declarations previously defined in this entity and referenced below include: ENTITY % paracon "#PCDATA" ENTITY % tbl.entry.mdl "(%paracon;)*" ENTITY % tbl.entry.att "" --> <define name="entry"> <element name="wng:entry"> <aux:desc aux:cat="oasis">An entry in a table, part of Wiley's customized <ulink xmlns="" url="http://www.oasis-open.org/specs/tm9901.html#AEN827">OASIS Exchange Table Model</ulink> +++.</aux:desc> <ref name="attlist.entry"/> <ref name="pattern.para.or.paras.or.ftf"/> </element> </define> <define name="attlist.entry" combine="interleave"> <interleave> <optional> <attribute name="colname"/> </optional> <optional> <attribute name="namest"/> </optional> <optional> <attribute name="nameend"/> </optional> <optional> <attribute name="morerows"/> </optional> <optional> <attribute name="colsep"> <ref name="yesorno"/> </attribute> </optional> <optional> <attribute name="rowsep"> <ref name="yesorno"/> </attribute> </optional> <optional> <attribute name="align"> <choice> <value>left</value> <value>right</value> <value>center</value> <value>justify</value> <value>char</value> </choice> </attribute> </optional> <optional> <attribute name="char"/> </optional> <optional> <attribute name="charoff"/> </optional> <optional> <attribute name="valign"> <choice> <value>top</value> <value>middle</value> <value>bottom</value> </choice> </attribute> </optional> <ref name="tbl.entry.att"/> </interleave> </define> <define name="title" combine="choice"> <notAllowed/> </define> </grammar>