[b1a51ac1] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <!--
|
---|
| 3 | This file is part of DocBook V5.0
|
---|
| 4 |
|
---|
| 5 | Copyright 1992-2008 HaL Computer Systems, Inc.,
|
---|
| 6 | O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
|
---|
| 7 | Corporation, Norman Walsh, Sun Microsystems, Inc., and the
|
---|
| 8 | Organization for the Advancement of Structured Information
|
---|
| 9 | Standards (OASIS).
|
---|
| 10 |
|
---|
| 11 | Release: $Id: xlink.rnc 8931 2010-10-20 13:29:20Z nwalsh $
|
---|
| 12 |
|
---|
| 13 | Permission to use, copy, modify and distribute the DocBook schema
|
---|
| 14 | and its accompanying documentation for any purpose and without fee
|
---|
| 15 | is hereby granted in perpetuity, provided that the above copyright
|
---|
| 16 | notice and this paragraph appear in all copies. The copyright
|
---|
| 17 | holders make no representation about the suitability of the schema
|
---|
| 18 | for any purpose. It is provided "as is" without expressed or implied
|
---|
| 19 | warranty.
|
---|
| 20 |
|
---|
| 21 | If you modify the DocBook schema in any way, label your schema as a
|
---|
| 22 | variant of DocBook. See the reference documentation
|
---|
| 23 | (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
|
---|
| 24 | for more information.
|
---|
| 25 |
|
---|
| 26 | Please direct all questions, bug reports, or suggestions for changes
|
---|
| 27 | to the docbook@lists.oasis-open.org mailing list. For more
|
---|
| 28 | information, see http://www.oasis-open.org/docbook/.
|
---|
| 29 |
|
---|
| 30 | ======================================================================
|
---|
| 31 | -->
|
---|
| 32 | <grammar ns="http://docbook.org/ns/docbook" xmlns:db="http://docbook.org/ns/docbook" xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ctrl="http://nwalsh.com/xmlns/schema-control/" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
---|
| 33 | <define name="db.info.elements" combine="choice">
|
---|
| 34 | <ref name="db.extendedlink"/>
|
---|
| 35 | </define>
|
---|
| 36 | <define name="db.xlink.from.attribute">
|
---|
| 37 | <attribute name="xlink:from">
|
---|
| 38 | <db:refpurpose>Specifies the XLink traversal-from</db:refpurpose>
|
---|
| 39 | <data type="NMTOKEN"/>
|
---|
| 40 | </attribute>
|
---|
| 41 | </define>
|
---|
| 42 | <define name="db.xlink.label.attribute">
|
---|
| 43 | <attribute name="xlink:label">
|
---|
| 44 | <db:refpurpose>Specifies the XLink label</db:refpurpose>
|
---|
| 45 | <data type="NMTOKEN"/>
|
---|
| 46 | </attribute>
|
---|
| 47 | </define>
|
---|
| 48 | <define name="db.xlink.to.attribute">
|
---|
| 49 | <attribute name="xlink:to">
|
---|
| 50 | <db:refpurpose>Specifies the XLink traversal-to</db:refpurpose>
|
---|
| 51 | <data type="NMTOKEN"/>
|
---|
| 52 | </attribute>
|
---|
| 53 | </define>
|
---|
| 54 | <!-- ====================================================================== -->
|
---|
| 55 | <div>
|
---|
| 56 | <db:refname>extendedlink</db:refname>
|
---|
| 57 | <db:refpurpose>An XLink extended link</db:refpurpose>
|
---|
| 58 | <define name="db.extendedlink.role.attribute">
|
---|
| 59 | <attribute name="role"/>
|
---|
| 60 | </define>
|
---|
| 61 | <define name="db.extendedlink.attlist">
|
---|
| 62 | <interleave>
|
---|
| 63 | <optional>
|
---|
| 64 | <ref name="db.extendedlink.role.attribute"/>
|
---|
| 65 | </optional>
|
---|
| 66 | <ref name="db.common.attributes"/>
|
---|
| 67 | <optional>
|
---|
| 68 | <attribute name="xlink:type" a:defaultValue="extended">
|
---|
| 69 | <db:refpurpose>Identifies the XLink link type </db:refpurpose>
|
---|
| 70 | <value>extended</value>
|
---|
| 71 | <a:documentation>An XLink extended link</a:documentation>
|
---|
| 72 | </attribute>
|
---|
| 73 | </optional>
|
---|
| 74 | <optional>
|
---|
| 75 | <ref name="db.xlink.role.attribute"/>
|
---|
| 76 | </optional>
|
---|
| 77 | <optional>
|
---|
| 78 | <ref name="db.xlink.title.attribute"/>
|
---|
| 79 | </optional>
|
---|
| 80 | </interleave>
|
---|
| 81 | </define>
|
---|
| 82 | <define name="db.extendedlink">
|
---|
| 83 | <element name="extendedlink">
|
---|
| 84 | <ref name="db.extendedlink.attlist"/>
|
---|
| 85 | <oneOrMore>
|
---|
| 86 | <choice>
|
---|
| 87 | <ref name="db.locator"/>
|
---|
| 88 | <ref name="db.arc"/>
|
---|
| 89 | </choice>
|
---|
| 90 | </oneOrMore>
|
---|
| 91 | </element>
|
---|
| 92 | </define>
|
---|
| 93 | </div>
|
---|
| 94 | <!-- ====================================================================== -->
|
---|
| 95 | <div>
|
---|
| 96 | <db:refname>locator</db:refname>
|
---|
| 97 | <db:refpurpose>An XLink locator in an <db:tag>extendedlink</db:tag>
|
---|
| 98 | </db:refpurpose>
|
---|
| 99 | <define name="db.locator.role.attribute">
|
---|
| 100 | <attribute name="role"/>
|
---|
| 101 | </define>
|
---|
| 102 | <define name="db.locator.attlist">
|
---|
| 103 | <interleave>
|
---|
| 104 | <optional>
|
---|
| 105 | <ref name="db.locator.role.attribute"/>
|
---|
| 106 | </optional>
|
---|
| 107 | <ref name="db.common.attributes"/>
|
---|
| 108 | <optional>
|
---|
| 109 | <attribute name="xlink:type" a:defaultValue="locator">
|
---|
| 110 | <db:refpurpose>Identifies the XLink link type </db:refpurpose>
|
---|
| 111 | <value>locator</value>
|
---|
| 112 | <a:documentation>An XLink locator link</a:documentation>
|
---|
| 113 | </attribute>
|
---|
| 114 | </optional>
|
---|
| 115 | <ref name="db.xlink.href.attribute"/>
|
---|
| 116 | <optional>
|
---|
| 117 | <ref name="db.xlink.role.attribute"/>
|
---|
| 118 | </optional>
|
---|
| 119 | <optional>
|
---|
| 120 | <ref name="db.xlink.title.attribute"/>
|
---|
| 121 | </optional>
|
---|
| 122 | <optional>
|
---|
| 123 | <ref name="db.xlink.label.attribute"/>
|
---|
| 124 | </optional>
|
---|
| 125 | </interleave>
|
---|
| 126 | </define>
|
---|
| 127 | <define name="db.locator">
|
---|
| 128 | <element name="locator">
|
---|
| 129 | <ref name="db.locator.attlist"/>
|
---|
| 130 | <empty/>
|
---|
| 131 | </element>
|
---|
| 132 | </define>
|
---|
| 133 | </div>
|
---|
| 134 | <!-- ====================================================================== -->
|
---|
| 135 | <div>
|
---|
| 136 | <db:refname>arc</db:refname>
|
---|
| 137 | <db:refpurpose>An XLink arc in an <db:tag>extendedlink</db:tag>
|
---|
| 138 | </db:refpurpose>
|
---|
| 139 | <define name="db.arc.role.attribute">
|
---|
| 140 | <attribute name="role"/>
|
---|
| 141 | </define>
|
---|
| 142 | <define name="db.arc.attlist">
|
---|
| 143 | <interleave>
|
---|
| 144 | <optional>
|
---|
| 145 | <ref name="db.arc.role.attribute"/>
|
---|
| 146 | </optional>
|
---|
| 147 | <ref name="db.common.attributes"/>
|
---|
| 148 | <optional>
|
---|
| 149 | <attribute name="xlink:type" a:defaultValue="arc">
|
---|
| 150 | <db:refpurpose>Identifies the XLink link type </db:refpurpose>
|
---|
| 151 | <value>arc</value>
|
---|
| 152 | <a:documentation>An XLink arc link</a:documentation>
|
---|
| 153 | </attribute>
|
---|
| 154 | </optional>
|
---|
| 155 | <optional>
|
---|
| 156 | <ref name="db.xlink.arcrole.attribute"/>
|
---|
| 157 | </optional>
|
---|
| 158 | <optional>
|
---|
| 159 | <ref name="db.xlink.title.attribute"/>
|
---|
| 160 | </optional>
|
---|
| 161 | <optional>
|
---|
| 162 | <ref name="db.xlink.show.attribute"/>
|
---|
| 163 | </optional>
|
---|
| 164 | <optional>
|
---|
| 165 | <ref name="db.xlink.actuate.attribute"/>
|
---|
| 166 | </optional>
|
---|
| 167 | <optional>
|
---|
| 168 | <ref name="db.xlink.from.attribute"/>
|
---|
| 169 | </optional>
|
---|
| 170 | <optional>
|
---|
| 171 | <ref name="db.xlink.to.attribute"/>
|
---|
| 172 | </optional>
|
---|
| 173 | </interleave>
|
---|
| 174 | </define>
|
---|
| 175 | <define name="db.arc">
|
---|
| 176 | <element name="arc">
|
---|
| 177 | <ref name="db.arc.attlist"/>
|
---|
| 178 | <empty/>
|
---|
| 179 | </element>
|
---|
| 180 | </define>
|
---|
| 181 | </div>
|
---|
| 182 | </grammar>
|
---|