Newer
Older
ade-outils-xml / dtd / Wileyml3gv20-rng / Wileyml3g.rng
@niederle niederle on 29 Dec 2015 5 KB 1er commit
<?xml version="1.0" encoding="UTF-8"?>
<!--
  =============================================================================================
  WileyML 3G Version 2.0
  
  A model for the content of John Wiley &amp; Sons. 
  
  This file conforms to ISO/IEC 19757-2:2003 AMENDMENT 1 (RELAX NG Compact Syntax). The
  collection of these files normatively defines the XML grammar for Wileyml3g instances.
  
  Copyright (c) 2011 John Wiley & Sons Inc. All rights reserved worldwide.
  
  $Id: Wileyml3g.rnc,v 1.38 2012/11/7 11:41:32 johnp Exp $
  =============================================================================================
-->
<!--
  Corrections (Additions) (Oct 2012):
    1. See Wileyml3g-core.rnc
    2. See Wileyml3g-metadata.rnc
-->
<!--
  Changes for v2.0 (Aug 2011):
    1. Removed <header> from start elements
    2. See Wileyml3g-cookery.rnc
    3. See Wileyml3g-core.rnc
    4. See Wileyml3g-high.rnc
    5. See Wileyml3g-lists.rnc
    6. See Wileyml3g-manifest.rnc
    7. See Wileyml3g-metadata.rnc
    8. See Wileyml3g-notes.rnc
    9. See Wileyml3g-patterns.rnc
    9. See Wileyml3g-protocols.rnc
   10. See Wileyml3g-questions.rnc
   11. See Wileyml3g-table.rnc
   12. See Wileyml3g-typo.rnc
   13. Changed from MathML 2 to MathML 3 (include mathml3.rnc)
-->
<!--
  Changes for v1.0.3 (Oct 2010):
    1. See Wileyml3g-core.rnc
    2. See Wileyml3g-metadata.rnc
    3. See Wileyml3g-questions.rnc
    4. Added wiley:location, cms:chunk, dctm atts to math
-->
<!-- Changes for v1.0.2 (May 2010):  internal release -->
<!--
  Changes for v1.0.1 (Sep 2009):
    1. See Wileyml3g-core.rnc
    2. See Wileyml3g-bib.rnc
    3. See Wileyml3g-questions.rnc
-->
<grammar xmlns:cms="http://cms.wiley.com" xmlns:dctm="http://www.documentum.com" xmlns:wiley="http://www.wiley.com/namespaces/wiley/wiley" 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">
  <start combine="choice">
    <choice>
      <ref name="wng.component"/>
      <ref name="wng.composite"/>
    </choice>
  </start>
  <!--
    =============================================================================================
    inclusions 
    =============================================================================================
  -->
  <include href="Wileyml3g-patterns.rng"/>
  <include href="Wileyml3g-typo.rng"/>
  <include href="Wileyml3g-core.rng"/>
  <include href="Wileyml3g-metadata.rng"/>
  <include href="Wileyml3g-bib.rng"/>
  <include href="Wileyml3g-high.rng"/>
  <include href="Wileyml3g-lists.rng"/>
  <include href="Wileyml3g-notes.rng"/>
  <include href="Wileyml3g-questions.rng"/>
  <include href="Wileyml3g-protocols.rng"/>
  <include href="Wileyml3g-cookery.rng"/>
  <include href="Wileyml3g-index.rng"/>
  <include href="Wileyml3g-manifest.rng"/>
  <include href="Wileyml3g-table.rng"/>
  <include href="oasisExchangeTable.rng"/>
  <define name="attlist.entry" combine="interleave">
    <optional>
      <attribute name="tint"/>
    </optional>
  </define>
  <define name="attlist.entry" combine="interleave">
    <optional>
      <attribute name="xml:id"/>
    </optional>
  </define>
  <define name="attlist.entry" combine="interleave">
    <optional>
      <attribute name="headers"/>
    </optional>
  </define>
  <define name="attlist.entry" combine="interleave">
    <optional>
      <attribute name="scope">
        <choice>
          <value>row</value>
          <value>col</value>
        </choice>
      </attribute>
    </optional>
  </define>
  <define name="attlist.entry" combine="interleave">
    <optional>
      <attribute name="abbr"/>
    </optional>
  </define>
  <define name="attlist.entry" combine="interleave">
    <optional>
      <attribute name="axis"/>
    </optional>
  </define>
  <define name="attlist.entry" combine="interleave">
    <optional>
      <attribute name="indentLevel">
        <choice>
          <value>1</value>
          <value>2</value>
          <value>3</value>
          <value>4</value>
          <value>5</value>
        </choice>
      </attribute>
    </optional>
  </define>
  <define name="attlist.table" combine="interleave">
    <optional>
      <attribute name="orient">
        <choice>
          <value>port</value>
          <value>land</value>
        </choice>
      </attribute>
    </optional>
  </define>
  <include href="mathml3-common.rng"/>
  <include href="mathml3-presentation.rng"/>
  <define name="math.attributes" combine="interleave">
    <optional>
      <attribute name="wiley:location"/>
    </optional>
  </define>
  <define name="math.attributes" combine="interleave">
    <optional>
      <attribute name="dctm:obj_id">
        <aux:desc>!suppress!</aux:desc>
      </attribute>
    </optional>
  </define>
  <define name="math.attributes" combine="interleave">
    <optional>
      <attribute name="dctm:obj_status">
        <aux:desc>!suppress!</aux:desc>
      </attribute>
    </optional>
  </define>
  <define name="math.attributes" combine="interleave">
    <optional>
      <attribute name="dctm:version_label">
        <aux:desc>!suppress!</aux:desc>
      </attribute>
    </optional>
  </define>
  <define name="math.attributes" combine="interleave">
    <optional>
      <attribute name="dctm:link_version_label">
        <aux:desc>!suppress!</aux:desc>
      </attribute>
    </optional>
  </define>
  <define name="math.attributes" combine="interleave">
    <optional>
      <attribute name="cms:chunk">
        <aux:desc>!suppress!</aux:desc>
        <ref name="pattern.boolean.tokens"/>
      </attribute>
    </optional>
  </define>
</grammar>