metanorma-bsi 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/.hound.yml +3 -0
- data/.rubocop.yml +14 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +7 -0
- data/LICENSE +25 -0
- data/README.adoc +199 -0
- data/Rakefile +8 -0
- data/bin/rspec +18 -0
- data/lib/asciidoctor/bsi/basicdoc.rng +1131 -0
- data/lib/asciidoctor/bsi/biblio.rng +1235 -0
- data/lib/asciidoctor/bsi/bsi.rng +120 -0
- data/lib/asciidoctor/bsi/bsi_intro_en.xml +105 -0
- data/lib/asciidoctor/bsi/cleanup.rb +78 -0
- data/lib/asciidoctor/bsi/cleanup_ref.rb +183 -0
- data/lib/asciidoctor/bsi/converter.rb +83 -0
- data/lib/asciidoctor/bsi/front.rb +67 -0
- data/lib/asciidoctor/bsi/isodoc.rng +1870 -0
- data/lib/asciidoctor/bsi/isostandard.rng +477 -0
- data/lib/asciidoctor/bsi/reqt.rng +194 -0
- data/lib/asciidoctor/bsi/validate.rb +224 -0
- data/lib/asciidoctor/bsi/validate_list.rb +72 -0
- data/lib/asciidoctor/bsi/validate_requirement.rb +163 -0
- data/lib/isodoc/bsi/base_convert.rb +91 -0
- data/lib/isodoc/bsi/bsi.international-standard.xsl +6540 -0
- data/lib/isodoc/bsi/html/html_bsi_intro.html +8 -0
- data/lib/isodoc/bsi/html/html_bsi_titlepage.html +50 -0
- data/lib/isodoc/bsi/html/htmlstyle.css +968 -0
- data/lib/isodoc/bsi/html/htmlstyle.scss +699 -0
- data/lib/isodoc/bsi/html_convert.rb +56 -0
- data/lib/isodoc/bsi/i18n-en.yaml +56 -0
- data/lib/isodoc/bsi/i18n.rb +15 -0
- data/lib/isodoc/bsi/init.rb +24 -0
- data/lib/isodoc/bsi/metadata.rb +33 -0
- data/lib/isodoc/bsi/pdf_convert.rb +17 -0
- data/lib/isodoc/bsi/presentation_xml_convert.rb +72 -0
- data/lib/isodoc/bsi/sts_convert.rb +30 -0
- data/lib/isodoc/bsi/xref.rb +134 -0
- data/lib/metanorma-bsi.rb +15 -0
- data/lib/metanorma/bsi.rb +6 -0
- data/lib/metanorma/bsi/processor.rb +51 -0
- data/lib/metanorma/bsi/version.rb +6 -0
- data/metanorma-bsi.gemspec +47 -0
- data/spec/asciidoctor/base_spec.rb +778 -0
- data/spec/asciidoctor/blocks_spec.rb +553 -0
- data/spec/asciidoctor/cleanup_spec.rb +547 -0
- data/spec/asciidoctor/inline_spec.rb +176 -0
- data/spec/asciidoctor/lists_spec.rb +194 -0
- data/spec/asciidoctor/refs_spec.rb +318 -0
- data/spec/asciidoctor/section_spec.rb +382 -0
- data/spec/asciidoctor/validate_spec.rb +858 -0
- data/spec/assets/header.html +7 -0
- data/spec/assets/html.css +2 -0
- data/spec/assets/iso.xml +71 -0
- data/spec/assets/rice_image1.png +0 -0
- data/spec/assets/word.css +2 -0
- data/spec/assets/wordintro.html +4 -0
- data/spec/assets/xref_error.adoc +7 -0
- data/spec/isodoc/blocks_spec.rb +259 -0
- data/spec/isodoc/i18n_spec.rb +442 -0
- data/spec/isodoc/inline_spec.rb +287 -0
- data/spec/isodoc/iso_spec.rb +116 -0
- data/spec/isodoc/metadata_spec.rb +262 -0
- data/spec/isodoc/postproc_spec.rb +137 -0
- data/spec/isodoc/ref_spec.rb +376 -0
- data/spec/isodoc/section_spec.rb +467 -0
- data/spec/isodoc/terms_spec.rb +246 -0
- data/spec/isodoc/xref_spec.rb +1730 -0
- data/spec/metanorma/processor_spec.rb +76 -0
- data/spec/spec_helper.rb +291 -0
- data/spec/vcr_cassettes/iso-639.yml +182 -0
- data/spec/vcr_cassettes/isobib_get_639_1967.yml +136 -0
- data/spec/vcr_cassettes/multistandard.yml +352 -0
- metadata +343 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b54389a2be552034efcc821b280f538ccc89c864463dffc9e06f78ca247211e4
|
4
|
+
data.tar.gz: 735cd41f8f3af50fd6c5d135c33223a6a11934f0e338d4aa32c8de083ae359bd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 047b7a5c4e731a347f448a3206ec0cab50b071c5ef1338fbd86a9b81d27ca45e6a6d887286d745efd00bbc7757102149bf59b5456f79c703679cd8522dc16900
|
7
|
+
data.tar.gz: 65d78de82e6bfaaca68d580675632eb18985136c9a2e35b20541201acd8441ea399959786350dc9c723c5773795b0944212f3c2c972c248359f52ed2cab15ed2
|
data/.gitignore
ADDED
data/.hound.yml
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# This project follows the Ribose OSS style guide.
|
2
|
+
# https://github.com/riboseinc/oss-guides
|
3
|
+
# All project-specific additions and overrides should be specified in this file.
|
4
|
+
inherit_from:
|
5
|
+
- https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
|
6
|
+
|
7
|
+
# local repo-specific modifications
|
8
|
+
|
9
|
+
AllCops:
|
10
|
+
DisplayCopNames: false
|
11
|
+
StyleGuideCopsOnly: false
|
12
|
+
TargetRubyVersion: 2.4
|
13
|
+
Rails:
|
14
|
+
Enabled: true
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at ronald.tse@ribose.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
BSD 2-Clause License
|
2
|
+
|
3
|
+
Copyright (c) 2018, Ribose
|
4
|
+
All rights reserved.
|
5
|
+
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
8
|
+
|
9
|
+
* Redistributions of source code must retain the above copyright notice, this
|
10
|
+
list of conditions and the following disclaimer.
|
11
|
+
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
14
|
+
and/or other materials provided with the distribution.
|
15
|
+
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
17
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
18
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
19
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
20
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
21
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
22
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
23
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
24
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
25
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.adoc
ADDED
@@ -0,0 +1,199 @@
|
|
1
|
+
= metanorma-BSI: Metanorma processor for the British Standards Institute
|
2
|
+
|
3
|
+
image:https://img.shields.io/gem/v/metanorma-bsi.svg["Gem Version", link="https://rubygems.org/gems/metanorma-bsi"]
|
4
|
+
image:https://github.com/metanorma/metanorma-bsi/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/metanorma-bsi/actions?workflow=rake"]
|
5
|
+
image:https://codeclimate.com/github/metanorma/metanorma-bsi/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-bsi"]
|
6
|
+
image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-bsi.svg["Pull Requests", link="https://github.com/metanorma/metanorma-bsi/pulls"]
|
7
|
+
image:https://img.shields.io/github/commits-since/metanorma/metanorma-bsi/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-bsi/releases"]
|
8
|
+
|
9
|
+
== Functionality
|
10
|
+
|
11
|
+
This gem processes https://www.metanorma.com[Metanorma documents] following
|
12
|
+
the Metanorma model for generating BSI standards.
|
13
|
+
|
14
|
+
The gem is basically the https://github.com/metanorma/metanorma-iso gem, with some tweaking of rendering to meet the particular requirements of the BSI.
|
15
|
+
|
16
|
+
It provides the following functions:
|
17
|
+
|
18
|
+
. Compiles Metanorma input into the Metanorma-BSI XML format (which is identical to Metanorma-ISO, since the two standards share the same document model)
|
19
|
+
. Validates XML output against the Metanorma-BSI document model
|
20
|
+
** Errors are reported to console against the XML, and are intended for users to
|
21
|
+
check that they have provided all necessary components of the
|
22
|
+
document.
|
23
|
+
. Metanorma-BSI XML is then converted into desired output formats.
|
24
|
+
|
25
|
+
The following outputs are supported:
|
26
|
+
|
27
|
+
* Primary: the canonical Metanorma-BSI XML representation (`.xml`).
|
28
|
+
* Secondary: the Metanorma-BSI XML representation is processed to generate the following outputs
|
29
|
+
as end deliverable BSI documents.
|
30
|
+
** HTML (`.html`)
|
31
|
+
** Word (`.doc`)
|
32
|
+
|
33
|
+
== Structure
|
34
|
+
|
35
|
+
This gem inherits from the https://github.com/metanorma/metanorma-iso
|
36
|
+
gem, and aligns closely to it.
|
37
|
+
|
38
|
+
|
39
|
+
=== Quickstart
|
40
|
+
|
41
|
+
Please see https://www.metanorma.com for instructions to get started.
|
42
|
+
|
43
|
+
If you are using a Mac, the https://github.com/metanorma/metanorma-macos-setup
|
44
|
+
repository has instructions on setting up your machine to run Metanorma
|
45
|
+
scripts such as this one. You need only run the following in a Terminal console:
|
46
|
+
|
47
|
+
[source,console]
|
48
|
+
----
|
49
|
+
$ bash <(curl -s https://raw.githubusercontent.com/metanorma/metanorma-macos-setup/master/metanorma-setup)
|
50
|
+
$ gem install metanorma-cli
|
51
|
+
$ gem install metanorma-bsi
|
52
|
+
----
|
53
|
+
|
54
|
+
|
55
|
+
== Usage
|
56
|
+
|
57
|
+
Using the `metanorma` CLI:
|
58
|
+
|
59
|
+
[source,console]
|
60
|
+
----
|
61
|
+
$ metanorma --type bsi a.adoc # output HTML
|
62
|
+
$ metanorma --type bsi --extensions html a.adoc # output just HTML
|
63
|
+
$ metanorma --type bsi --extensions xml a.adoc # output Metanorma XML
|
64
|
+
----
|
65
|
+
|
66
|
+
|
67
|
+
== Authoring
|
68
|
+
|
69
|
+
Please refer to the Metanorma-ISO documentation for general documentation.
|
70
|
+
|
71
|
+
* Metanorma-ISO general documentation: https://www.metanorma.com/software/metanorma-iso/
|
72
|
+
|
73
|
+
* Metanorma-ISO guidance: https://www.metanorma.com/software/metanorma-iso/docs/guidance/
|
74
|
+
|
75
|
+
|
76
|
+
== Documentation
|
77
|
+
|
78
|
+
See https://www.metanorma.com/author/iso/[Write ISO documents with Metanorma]
|
79
|
+
|
80
|
+
Extensions specific to BSI:
|
81
|
+
|
82
|
+
=== Adoptiopn of standard
|
83
|
+
|
84
|
+
An adopted external standard is defined as `:adopted-from:`:
|
85
|
+
|
86
|
+
[source,asciidoctor]
|
87
|
+
----
|
88
|
+
:docidentifier: NA to BS EN 1991-1-2
|
89
|
+
:adopted-from: EN 1991-1-2
|
90
|
+
----
|
91
|
+
|
92
|
+
|
93
|
+
[source,asciidoctor]
|
94
|
+
----
|
95
|
+
:docidentifier: BS ISO 639-2
|
96
|
+
:adopted-from: ISO 639-2
|
97
|
+
----
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
=== Commentaries
|
102
|
+
|
103
|
+
Commentaries are entered as notes of type `commentary`,
|
104
|
+
with an optional `target` attribute,
|
105
|
+
giving the anchor of the block the commentary is referencing. If no target
|
106
|
+
is given, the commentary is assumed to be about the subclause containing it.
|
107
|
+
|
108
|
+
[source,asciidoc]
|
109
|
+
----
|
110
|
+
[[reag]]
|
111
|
+
=== Reagents
|
112
|
+
|
113
|
+
[NOTE,type=commentary,target=reag]
|
114
|
+
This is a commentary on the reagents
|
115
|
+
|
116
|
+
[[table1]]
|
117
|
+
.Reagents in use
|
118
|
+
|===
|
119
|
+
| A | B
|
120
|
+
|===
|
121
|
+
----
|
122
|
+
|
123
|
+
____
|
124
|
+
*7.6 Reagents*
|
125
|
+
|
126
|
+
COMMENTARY ON CLAUSE 7.6
|
127
|
+
This is a commentary on the reagents
|
128
|
+
|
129
|
+
|===
|
130
|
+
| A | B
|
131
|
+
|===
|
132
|
+
_Table 1: Reagents in use_
|
133
|
+
----
|
134
|
+
____
|
135
|
+
|
136
|
+
[source,asciidoc]
|
137
|
+
----
|
138
|
+
[[reag]]
|
139
|
+
=== Reagents
|
140
|
+
|
141
|
+
[NOTE,type=commentary]
|
142
|
+
This is a commentary on the reagents
|
143
|
+
|
144
|
+
[[table1]]
|
145
|
+
.Reagents in use
|
146
|
+
|===
|
147
|
+
| A | B
|
148
|
+
|===
|
149
|
+
----
|
150
|
+
|
151
|
+
____
|
152
|
+
*7.6 Reagents*
|
153
|
+
|
154
|
+
COMMENTARY ON CLAUSE 7.6
|
155
|
+
This is a commentary on the reagents
|
156
|
+
|
157
|
+
|===
|
158
|
+
| A | B
|
159
|
+
|===
|
160
|
+
_Table 1: Reagents in use_
|
161
|
+
----
|
162
|
+
____
|
163
|
+
|
164
|
+
|
165
|
+
[source,asciidoc]
|
166
|
+
----
|
167
|
+
=== Reagents
|
168
|
+
|
169
|
+
[NOTE,type=commentary,target=table1]
|
170
|
+
This is a commentary on the table
|
171
|
+
|
172
|
+
[[table1]]
|
173
|
+
.Reagents in use
|
174
|
+
|===
|
175
|
+
| A | B
|
176
|
+
|===
|
177
|
+
----
|
178
|
+
|
179
|
+
____
|
180
|
+
*7.6 Reagents*
|
181
|
+
|
182
|
+
COMMENTARY ON TABLE 1
|
183
|
+
This is a commentary on the table
|
184
|
+
|
185
|
+
|===
|
186
|
+
| A | B
|
187
|
+
|===
|
188
|
+
_Table 1: Reagents in use_
|
189
|
+
----
|
190
|
+
____
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
== Examples
|
196
|
+
|
197
|
+
* Example documents are avalable at the https://github.com/metanorma/mn-samples-bsi[mn-samples-bsi] repository.
|
198
|
+
* Document templates are available at the https://github.com/metanorma/mn-templates-bsi[mn-templates-bsi] repository.
|
199
|
+
|
data/Rakefile
ADDED
data/bin/rspec
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rspec' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require "pathname"
|
10
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path(
|
11
|
+
"../../Gemfile", Pathname.new(__FILE__).realpath
|
12
|
+
)
|
13
|
+
|
14
|
+
require "rubygems"
|
15
|
+
require "bundler/setup"
|
16
|
+
|
17
|
+
load Gem.bin_path("rspec-core", "rspec")
|
18
|
+
|
@@ -0,0 +1,1131 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
+
<include href="biblio.rng">
|
4
|
+
<start>
|
5
|
+
<ref name="document"/>
|
6
|
+
</start>
|
7
|
+
</include>
|
8
|
+
<define name="document">
|
9
|
+
<element name="document">
|
10
|
+
<optional>
|
11
|
+
<attribute name="identifier"/>
|
12
|
+
</optional>
|
13
|
+
<ref name="bibdata"/>
|
14
|
+
<ref name="sections"/>
|
15
|
+
<zeroOrMore>
|
16
|
+
<ref name="references"/>
|
17
|
+
</zeroOrMore>
|
18
|
+
</element>
|
19
|
+
</define>
|
20
|
+
<define name="bibdata">
|
21
|
+
<element name="bibdata">
|
22
|
+
<ref name="BibData"/>
|
23
|
+
</element>
|
24
|
+
</define>
|
25
|
+
<define name="sections">
|
26
|
+
<element name="sections">
|
27
|
+
<oneOrMore>
|
28
|
+
<ref name="section"/>
|
29
|
+
</oneOrMore>
|
30
|
+
</element>
|
31
|
+
</define>
|
32
|
+
<define name="section">
|
33
|
+
<element name="section">
|
34
|
+
<ref name="Basic-Section"/>
|
35
|
+
<zeroOrMore>
|
36
|
+
<ref name="section"/>
|
37
|
+
</zeroOrMore>
|
38
|
+
</element>
|
39
|
+
</define>
|
40
|
+
<define name="Basic-Section">
|
41
|
+
<optional>
|
42
|
+
<attribute name="id">
|
43
|
+
<data type="ID"/>
|
44
|
+
</attribute>
|
45
|
+
</optional>
|
46
|
+
<optional>
|
47
|
+
<attribute name="language"/>
|
48
|
+
</optional>
|
49
|
+
<optional>
|
50
|
+
<attribute name="script"/>
|
51
|
+
</optional>
|
52
|
+
<optional>
|
53
|
+
<ref name="section-title"/>
|
54
|
+
</optional>
|
55
|
+
<zeroOrMore>
|
56
|
+
<ref name="BasicBlock"/>
|
57
|
+
</zeroOrMore>
|
58
|
+
</define>
|
59
|
+
<define name="references">
|
60
|
+
<element name="references">
|
61
|
+
<optional>
|
62
|
+
<attribute name="id">
|
63
|
+
<data type="ID"/>
|
64
|
+
</attribute>
|
65
|
+
</optional>
|
66
|
+
<optional>
|
67
|
+
<ref name="section-title"/>
|
68
|
+
</optional>
|
69
|
+
<zeroOrMore>
|
70
|
+
<ref name="BasicBlock"/>
|
71
|
+
</zeroOrMore>
|
72
|
+
<zeroOrMore>
|
73
|
+
<ref name="bibitem"/>
|
74
|
+
</zeroOrMore>
|
75
|
+
</element>
|
76
|
+
</define>
|
77
|
+
<define name="section-title">
|
78
|
+
<element name="title">
|
79
|
+
<zeroOrMore>
|
80
|
+
<ref name="TextElement"/>
|
81
|
+
</zeroOrMore>
|
82
|
+
</element>
|
83
|
+
</define>
|
84
|
+
<define name="BasicBlock">
|
85
|
+
<choice>
|
86
|
+
<ref name="paragraph-with-footnote"/>
|
87
|
+
<ref name="table"/>
|
88
|
+
<ref name="formula"/>
|
89
|
+
<ref name="admonition"/>
|
90
|
+
<ref name="ol"/>
|
91
|
+
<ref name="ul"/>
|
92
|
+
<ref name="dl"/>
|
93
|
+
<ref name="figure"/>
|
94
|
+
<ref name="quote"/>
|
95
|
+
<ref name="sourcecode"/>
|
96
|
+
<ref name="example"/>
|
97
|
+
<ref name="review"/>
|
98
|
+
<ref name="pre"/>
|
99
|
+
<ref name="note"/>
|
100
|
+
<ref name="pagebreak"/>
|
101
|
+
<ref name="hr"/>
|
102
|
+
<ref name="bookmark"/>
|
103
|
+
</choice>
|
104
|
+
</define>
|
105
|
+
<define name="paragraph">
|
106
|
+
<element name="p">
|
107
|
+
<ref name="ParagraphType"/>
|
108
|
+
</element>
|
109
|
+
</define>
|
110
|
+
<define name="Alignments">
|
111
|
+
<choice>
|
112
|
+
<value>left</value>
|
113
|
+
<value>right</value>
|
114
|
+
<value>center</value>
|
115
|
+
<value>justified</value>
|
116
|
+
</choice>
|
117
|
+
</define>
|
118
|
+
<define name="ParagraphType">
|
119
|
+
<attribute name="id">
|
120
|
+
<data type="ID"/>
|
121
|
+
</attribute>
|
122
|
+
<optional>
|
123
|
+
<attribute name="align">
|
124
|
+
<ref name="Alignments"/>
|
125
|
+
</attribute>
|
126
|
+
</optional>
|
127
|
+
<zeroOrMore>
|
128
|
+
<ref name="TextElement"/>
|
129
|
+
</zeroOrMore>
|
130
|
+
<zeroOrMore>
|
131
|
+
<ref name="note"/>
|
132
|
+
</zeroOrMore>
|
133
|
+
</define>
|
134
|
+
<define name="paragraph-with-footnote">
|
135
|
+
<element name="p">
|
136
|
+
<attribute name="id">
|
137
|
+
<data type="ID"/>
|
138
|
+
</attribute>
|
139
|
+
<optional>
|
140
|
+
<attribute name="align">
|
141
|
+
<ref name="Alignments"/>
|
142
|
+
</attribute>
|
143
|
+
</optional>
|
144
|
+
<zeroOrMore>
|
145
|
+
<choice>
|
146
|
+
<ref name="TextElement"/>
|
147
|
+
<ref name="fn"/>
|
148
|
+
</choice>
|
149
|
+
</zeroOrMore>
|
150
|
+
<zeroOrMore>
|
151
|
+
<ref name="note"/>
|
152
|
+
</zeroOrMore>
|
153
|
+
</element>
|
154
|
+
</define>
|
155
|
+
<define name="note">
|
156
|
+
<element name="note">
|
157
|
+
<attribute name="id">
|
158
|
+
<data type="ID"/>
|
159
|
+
</attribute>
|
160
|
+
<oneOrMore>
|
161
|
+
<ref name="paragraph"/>
|
162
|
+
</oneOrMore>
|
163
|
+
</element>
|
164
|
+
</define>
|
165
|
+
<define name="review">
|
166
|
+
<element name="review">
|
167
|
+
<attribute name="id">
|
168
|
+
<data type="ID"/>
|
169
|
+
</attribute>
|
170
|
+
<attribute name="reviewer"/>
|
171
|
+
<optional>
|
172
|
+
<attribute name="date">
|
173
|
+
<data type="dateTime"/>
|
174
|
+
</attribute>
|
175
|
+
</optional>
|
176
|
+
<attribute name="from">
|
177
|
+
<data type="IDREF"/>
|
178
|
+
</attribute>
|
179
|
+
<optional>
|
180
|
+
<attribute name="to">
|
181
|
+
<data type="IDREF"/>
|
182
|
+
</attribute>
|
183
|
+
</optional>
|
184
|
+
<oneOrMore>
|
185
|
+
<ref name="paragraph"/>
|
186
|
+
</oneOrMore>
|
187
|
+
</element>
|
188
|
+
</define>
|
189
|
+
<define name="formula">
|
190
|
+
<element name="formula">
|
191
|
+
<attribute name="id">
|
192
|
+
<data type="ID"/>
|
193
|
+
</attribute>
|
194
|
+
<optional>
|
195
|
+
<attribute name="unnumbered">
|
196
|
+
<data type="boolean"/>
|
197
|
+
</attribute>
|
198
|
+
</optional>
|
199
|
+
<optional>
|
200
|
+
<attribute name="subsequence"/>
|
201
|
+
</optional>
|
202
|
+
<optional>
|
203
|
+
<attribute name="inequality">
|
204
|
+
<data type="boolean"/>
|
205
|
+
</attribute>
|
206
|
+
</optional>
|
207
|
+
<ref name="stem"/>
|
208
|
+
<optional>
|
209
|
+
<ref name="dl"/>
|
210
|
+
</optional>
|
211
|
+
<zeroOrMore>
|
212
|
+
<ref name="note"/>
|
213
|
+
</zeroOrMore>
|
214
|
+
</element>
|
215
|
+
</define>
|
216
|
+
<define name="quote">
|
217
|
+
<element name="quote">
|
218
|
+
<attribute name="id">
|
219
|
+
<data type="ID"/>
|
220
|
+
</attribute>
|
221
|
+
<optional>
|
222
|
+
<attribute name="alignment">
|
223
|
+
<ref name="Alignments"/>
|
224
|
+
</attribute>
|
225
|
+
</optional>
|
226
|
+
<optional>
|
227
|
+
<ref name="quote-source"/>
|
228
|
+
</optional>
|
229
|
+
<optional>
|
230
|
+
<ref name="quote-author"/>
|
231
|
+
</optional>
|
232
|
+
<oneOrMore>
|
233
|
+
<ref name="paragraph-with-footnote"/>
|
234
|
+
</oneOrMore>
|
235
|
+
<zeroOrMore>
|
236
|
+
<ref name="note"/>
|
237
|
+
</zeroOrMore>
|
238
|
+
</element>
|
239
|
+
</define>
|
240
|
+
<define name="quote-source">
|
241
|
+
<element name="source">
|
242
|
+
<ref name="erefType"/>
|
243
|
+
</element>
|
244
|
+
</define>
|
245
|
+
<define name="quote-author">
|
246
|
+
<element name="author">
|
247
|
+
<text/>
|
248
|
+
</element>
|
249
|
+
</define>
|
250
|
+
<define name="sourcecode">
|
251
|
+
<element name="sourcecode">
|
252
|
+
<attribute name="id">
|
253
|
+
<data type="ID"/>
|
254
|
+
</attribute>
|
255
|
+
<optional>
|
256
|
+
<attribute name="unnumbered">
|
257
|
+
<data type="boolean"/>
|
258
|
+
</attribute>
|
259
|
+
</optional>
|
260
|
+
<optional>
|
261
|
+
<attribute name="subsequence"/>
|
262
|
+
</optional>
|
263
|
+
<optional>
|
264
|
+
<attribute name="lang"/>
|
265
|
+
</optional>
|
266
|
+
<optional>
|
267
|
+
<ref name="tname"/>
|
268
|
+
</optional>
|
269
|
+
<oneOrMore>
|
270
|
+
<choice>
|
271
|
+
<text/>
|
272
|
+
<ref name="callout"/>
|
273
|
+
</choice>
|
274
|
+
</oneOrMore>
|
275
|
+
<zeroOrMore>
|
276
|
+
<ref name="annotation"/>
|
277
|
+
</zeroOrMore>
|
278
|
+
<zeroOrMore>
|
279
|
+
<ref name="note"/>
|
280
|
+
</zeroOrMore>
|
281
|
+
</element>
|
282
|
+
</define>
|
283
|
+
<define name="pre">
|
284
|
+
<element name="pre">
|
285
|
+
<attribute name="id">
|
286
|
+
<data type="ID"/>
|
287
|
+
</attribute>
|
288
|
+
<optional>
|
289
|
+
<attribute name="alt"/>
|
290
|
+
</optional>
|
291
|
+
<optional>
|
292
|
+
<ref name="tname"/>
|
293
|
+
</optional>
|
294
|
+
<text/>
|
295
|
+
<zeroOrMore>
|
296
|
+
<ref name="note"/>
|
297
|
+
</zeroOrMore>
|
298
|
+
</element>
|
299
|
+
</define>
|
300
|
+
<define name="table">
|
301
|
+
<element name="table">
|
302
|
+
<attribute name="id">
|
303
|
+
<data type="ID"/>
|
304
|
+
</attribute>
|
305
|
+
<optional>
|
306
|
+
<attribute name="unnumbered">
|
307
|
+
<data type="boolean"/>
|
308
|
+
</attribute>
|
309
|
+
</optional>
|
310
|
+
<optional>
|
311
|
+
<attribute name="subsequence"/>
|
312
|
+
</optional>
|
313
|
+
<optional>
|
314
|
+
<attribute name="alt"/>
|
315
|
+
</optional>
|
316
|
+
<optional>
|
317
|
+
<attribute name="summary"/>
|
318
|
+
</optional>
|
319
|
+
<optional>
|
320
|
+
<attribute name="uri">
|
321
|
+
<data type="anyURI"/>
|
322
|
+
</attribute>
|
323
|
+
</optional>
|
324
|
+
<optional>
|
325
|
+
<ref name="tname"/>
|
326
|
+
</optional>
|
327
|
+
<optional>
|
328
|
+
<ref name="thead"/>
|
329
|
+
</optional>
|
330
|
+
<ref name="tbody"/>
|
331
|
+
<optional>
|
332
|
+
<ref name="tfoot"/>
|
333
|
+
</optional>
|
334
|
+
<zeroOrMore>
|
335
|
+
<ref name="table-note"/>
|
336
|
+
</zeroOrMore>
|
337
|
+
<optional>
|
338
|
+
<ref name="dl"/>
|
339
|
+
</optional>
|
340
|
+
</element>
|
341
|
+
</define>
|
342
|
+
<define name="tname">
|
343
|
+
<element name="name">
|
344
|
+
<oneOrMore>
|
345
|
+
<choice>
|
346
|
+
<ref name="PureTextElement"/>
|
347
|
+
<ref name="eref"/>
|
348
|
+
<ref name="stem"/>
|
349
|
+
<ref name="keyword"/>
|
350
|
+
<ref name="xref"/>
|
351
|
+
<ref name="hyperlink"/>
|
352
|
+
</choice>
|
353
|
+
</oneOrMore>
|
354
|
+
</element>
|
355
|
+
</define>
|
356
|
+
<define name="thead">
|
357
|
+
<element name="thead">
|
358
|
+
<ref name="tr"/>
|
359
|
+
</element>
|
360
|
+
</define>
|
361
|
+
<define name="tfoot">
|
362
|
+
<element name="tfoot">
|
363
|
+
<ref name="tr"/>
|
364
|
+
</element>
|
365
|
+
</define>
|
366
|
+
<define name="tbody">
|
367
|
+
<element name="tbody">
|
368
|
+
<oneOrMore>
|
369
|
+
<ref name="tr"/>
|
370
|
+
</oneOrMore>
|
371
|
+
</element>
|
372
|
+
</define>
|
373
|
+
<define name="table-note">
|
374
|
+
<element name="note">
|
375
|
+
<ref name="paragraph"/>
|
376
|
+
</element>
|
377
|
+
</define>
|
378
|
+
<define name="tr">
|
379
|
+
<element name="tr">
|
380
|
+
<oneOrMore>
|
381
|
+
<choice>
|
382
|
+
<ref name="td"/>
|
383
|
+
<ref name="th"/>
|
384
|
+
</choice>
|
385
|
+
</oneOrMore>
|
386
|
+
</element>
|
387
|
+
</define>
|
388
|
+
<define name="td">
|
389
|
+
<element name="td">
|
390
|
+
<optional>
|
391
|
+
<attribute name="colspan"/>
|
392
|
+
</optional>
|
393
|
+
<optional>
|
394
|
+
<attribute name="rowspan"/>
|
395
|
+
</optional>
|
396
|
+
<optional>
|
397
|
+
<attribute name="align">
|
398
|
+
<choice>
|
399
|
+
<value>left</value>
|
400
|
+
<value>right</value>
|
401
|
+
<value>center</value>
|
402
|
+
</choice>
|
403
|
+
</attribute>
|
404
|
+
</optional>
|
405
|
+
<optional>
|
406
|
+
<attribute name="valign">
|
407
|
+
<choice>
|
408
|
+
<value>top</value>
|
409
|
+
<value>middle</value>
|
410
|
+
<value>bottom</value>
|
411
|
+
<value>baseline</value>
|
412
|
+
</choice>
|
413
|
+
</attribute>
|
414
|
+
</optional>
|
415
|
+
<choice>
|
416
|
+
<zeroOrMore>
|
417
|
+
<ref name="TextElement"/>
|
418
|
+
</zeroOrMore>
|
419
|
+
<oneOrMore>
|
420
|
+
<ref name="paragraph-with-footnote"/>
|
421
|
+
</oneOrMore>
|
422
|
+
</choice>
|
423
|
+
</element>
|
424
|
+
</define>
|
425
|
+
<define name="th">
|
426
|
+
<element name="th">
|
427
|
+
<optional>
|
428
|
+
<attribute name="colspan"/>
|
429
|
+
</optional>
|
430
|
+
<optional>
|
431
|
+
<attribute name="rowspan"/>
|
432
|
+
</optional>
|
433
|
+
<optional>
|
434
|
+
<attribute name="align">
|
435
|
+
<choice>
|
436
|
+
<value>left</value>
|
437
|
+
<value>right</value>
|
438
|
+
<value>center</value>
|
439
|
+
</choice>
|
440
|
+
</attribute>
|
441
|
+
</optional>
|
442
|
+
<optional>
|
443
|
+
<attribute name="valign">
|
444
|
+
<choice>
|
445
|
+
<value>top</value>
|
446
|
+
<value>middle</value>
|
447
|
+
<value>bottom</value>
|
448
|
+
<value>baseline</value>
|
449
|
+
</choice>
|
450
|
+
</attribute>
|
451
|
+
</optional>
|
452
|
+
<choice>
|
453
|
+
<zeroOrMore>
|
454
|
+
<ref name="TextElement"/>
|
455
|
+
</zeroOrMore>
|
456
|
+
<oneOrMore>
|
457
|
+
<ref name="paragraph-with-footnote"/>
|
458
|
+
</oneOrMore>
|
459
|
+
</choice>
|
460
|
+
</element>
|
461
|
+
</define>
|
462
|
+
<define name="example">
|
463
|
+
<element name="example">
|
464
|
+
<attribute name="id">
|
465
|
+
<data type="ID"/>
|
466
|
+
</attribute>
|
467
|
+
<optional>
|
468
|
+
<attribute name="unnumbered">
|
469
|
+
<data type="boolean"/>
|
470
|
+
</attribute>
|
471
|
+
</optional>
|
472
|
+
<optional>
|
473
|
+
<attribute name="subsequence"/>
|
474
|
+
</optional>
|
475
|
+
<optional>
|
476
|
+
<ref name="tname"/>
|
477
|
+
</optional>
|
478
|
+
<oneOrMore>
|
479
|
+
<choice>
|
480
|
+
<ref name="formula"/>
|
481
|
+
<ref name="ul"/>
|
482
|
+
<ref name="ol"/>
|
483
|
+
<ref name="dl"/>
|
484
|
+
<ref name="quote"/>
|
485
|
+
<ref name="sourcecode"/>
|
486
|
+
<ref name="paragraph-with-footnote"/>
|
487
|
+
</choice>
|
488
|
+
</oneOrMore>
|
489
|
+
<zeroOrMore>
|
490
|
+
<ref name="note"/>
|
491
|
+
</zeroOrMore>
|
492
|
+
</element>
|
493
|
+
</define>
|
494
|
+
<define name="admonition">
|
495
|
+
<element name="admonition">
|
496
|
+
<attribute name="type">
|
497
|
+
<ref name="AdmonitionType"/>
|
498
|
+
</attribute>
|
499
|
+
<optional>
|
500
|
+
<attribute name="class"/>
|
501
|
+
</optional>
|
502
|
+
<attribute name="id">
|
503
|
+
<data type="ID"/>
|
504
|
+
</attribute>
|
505
|
+
<optional>
|
506
|
+
<attribute name="uri">
|
507
|
+
<data type="anyURI"/>
|
508
|
+
</attribute>
|
509
|
+
</optional>
|
510
|
+
<optional>
|
511
|
+
<ref name="tname"/>
|
512
|
+
</optional>
|
513
|
+
<zeroOrMore>
|
514
|
+
<ref name="paragraph-with-footnote"/>
|
515
|
+
</zeroOrMore>
|
516
|
+
<zeroOrMore>
|
517
|
+
<ref name="note"/>
|
518
|
+
</zeroOrMore>
|
519
|
+
</element>
|
520
|
+
</define>
|
521
|
+
<define name="AdmonitionType">
|
522
|
+
<choice>
|
523
|
+
<value>warning</value>
|
524
|
+
<value>note</value>
|
525
|
+
<value>tip</value>
|
526
|
+
<value>important</value>
|
527
|
+
<value>caution</value>
|
528
|
+
<value>statement</value>
|
529
|
+
</choice>
|
530
|
+
</define>
|
531
|
+
<define name="figure">
|
532
|
+
<element name="figure">
|
533
|
+
<attribute name="id">
|
534
|
+
<data type="ID"/>
|
535
|
+
</attribute>
|
536
|
+
<optional>
|
537
|
+
<attribute name="unnumbered">
|
538
|
+
<data type="boolean"/>
|
539
|
+
</attribute>
|
540
|
+
</optional>
|
541
|
+
<optional>
|
542
|
+
<attribute name="subsequence"/>
|
543
|
+
</optional>
|
544
|
+
<optional>
|
545
|
+
<attribute name="class"/>
|
546
|
+
</optional>
|
547
|
+
<optional>
|
548
|
+
<ref name="source"/>
|
549
|
+
</optional>
|
550
|
+
<optional>
|
551
|
+
<ref name="tname"/>
|
552
|
+
</optional>
|
553
|
+
<choice>
|
554
|
+
<ref name="image"/>
|
555
|
+
<ref name="video"/>
|
556
|
+
<ref name="audio"/>
|
557
|
+
<ref name="pre"/>
|
558
|
+
<oneOrMore>
|
559
|
+
<ref name="paragraph-with-footnote"/>
|
560
|
+
</oneOrMore>
|
561
|
+
<zeroOrMore>
|
562
|
+
<ref name="figure"/>
|
563
|
+
</zeroOrMore>
|
564
|
+
</choice>
|
565
|
+
<zeroOrMore>
|
566
|
+
<ref name="fn"/>
|
567
|
+
</zeroOrMore>
|
568
|
+
<optional>
|
569
|
+
<ref name="dl"/>
|
570
|
+
</optional>
|
571
|
+
<zeroOrMore>
|
572
|
+
<ref name="note"/>
|
573
|
+
</zeroOrMore>
|
574
|
+
</element>
|
575
|
+
</define>
|
576
|
+
<define name="TextElement">
|
577
|
+
<choice>
|
578
|
+
<text/>
|
579
|
+
<ref name="em"/>
|
580
|
+
<ref name="eref"/>
|
581
|
+
<ref name="strong"/>
|
582
|
+
<ref name="stem"/>
|
583
|
+
<ref name="sub"/>
|
584
|
+
<ref name="sup"/>
|
585
|
+
<ref name="tt"/>
|
586
|
+
<ref name="underline"/>
|
587
|
+
<ref name="keyword"/>
|
588
|
+
<ref name="ruby"/>
|
589
|
+
<ref name="strike"/>
|
590
|
+
<ref name="smallcap"/>
|
591
|
+
<ref name="xref"/>
|
592
|
+
<ref name="br"/>
|
593
|
+
<ref name="hyperlink"/>
|
594
|
+
<ref name="hr"/>
|
595
|
+
<ref name="pagebreak"/>
|
596
|
+
<ref name="bookmark"/>
|
597
|
+
<ref name="image"/>
|
598
|
+
<ref name="index"/>
|
599
|
+
<ref name="index-xref"/>
|
600
|
+
</choice>
|
601
|
+
</define>
|
602
|
+
<define name="PureTextElement">
|
603
|
+
<choice>
|
604
|
+
<text/>
|
605
|
+
<ref name="em"/>
|
606
|
+
<ref name="strong"/>
|
607
|
+
<ref name="sub"/>
|
608
|
+
<ref name="sup"/>
|
609
|
+
<ref name="tt"/>
|
610
|
+
<ref name="underline"/>
|
611
|
+
<ref name="strike"/>
|
612
|
+
<ref name="smallcap"/>
|
613
|
+
<ref name="br"/>
|
614
|
+
</choice>
|
615
|
+
</define>
|
616
|
+
<define name="source">
|
617
|
+
<element name="source">
|
618
|
+
<ref name="TypedUri"/>
|
619
|
+
</element>
|
620
|
+
</define>
|
621
|
+
<define name="em">
|
622
|
+
<element name="em">
|
623
|
+
<zeroOrMore>
|
624
|
+
<choice>
|
625
|
+
<ref name="PureTextElement"/>
|
626
|
+
<ref name="stem"/>
|
627
|
+
</choice>
|
628
|
+
</zeroOrMore>
|
629
|
+
</element>
|
630
|
+
</define>
|
631
|
+
<define name="strong">
|
632
|
+
<element name="strong">
|
633
|
+
<zeroOrMore>
|
634
|
+
<choice>
|
635
|
+
<ref name="PureTextElement"/>
|
636
|
+
<ref name="stem"/>
|
637
|
+
</choice>
|
638
|
+
</zeroOrMore>
|
639
|
+
</element>
|
640
|
+
</define>
|
641
|
+
<define name="tt">
|
642
|
+
<element name="tt">
|
643
|
+
<zeroOrMore>
|
644
|
+
<ref name="PureTextElement"/>
|
645
|
+
</zeroOrMore>
|
646
|
+
</element>
|
647
|
+
</define>
|
648
|
+
<define name="keyword">
|
649
|
+
<element name="keyword">
|
650
|
+
<zeroOrMore>
|
651
|
+
<ref name="PureTextElement"/>
|
652
|
+
</zeroOrMore>
|
653
|
+
</element>
|
654
|
+
</define>
|
655
|
+
<define name="sub">
|
656
|
+
<element name="sub">
|
657
|
+
<zeroOrMore>
|
658
|
+
<ref name="PureTextElement"/>
|
659
|
+
</zeroOrMore>
|
660
|
+
</element>
|
661
|
+
</define>
|
662
|
+
<define name="sup">
|
663
|
+
<element name="sup">
|
664
|
+
<zeroOrMore>
|
665
|
+
<ref name="PureTextElement"/>
|
666
|
+
</zeroOrMore>
|
667
|
+
</element>
|
668
|
+
</define>
|
669
|
+
<define name="strike">
|
670
|
+
<element name="strike">
|
671
|
+
<zeroOrMore>
|
672
|
+
<ref name="PureTextElement"/>
|
673
|
+
</zeroOrMore>
|
674
|
+
</element>
|
675
|
+
</define>
|
676
|
+
<define name="underline">
|
677
|
+
<element name="underline">
|
678
|
+
<zeroOrMore>
|
679
|
+
<ref name="PureTextElement"/>
|
680
|
+
</zeroOrMore>
|
681
|
+
</element>
|
682
|
+
</define>
|
683
|
+
<define name="smallcap">
|
684
|
+
<element name="smallcap">
|
685
|
+
<zeroOrMore>
|
686
|
+
<ref name="PureTextElement"/>
|
687
|
+
</zeroOrMore>
|
688
|
+
</element>
|
689
|
+
</define>
|
690
|
+
<define name="ruby">
|
691
|
+
<element name="ruby">
|
692
|
+
<zeroOrMore>
|
693
|
+
<choice>
|
694
|
+
<ref name="PureTextElement"/>
|
695
|
+
<ref name="rp"/>
|
696
|
+
<ref name="rt"/>
|
697
|
+
</choice>
|
698
|
+
</zeroOrMore>
|
699
|
+
</element>
|
700
|
+
</define>
|
701
|
+
<define name="rp">
|
702
|
+
<element name="rp">
|
703
|
+
<zeroOrMore>
|
704
|
+
<ref name="PureTextElement"/>
|
705
|
+
</zeroOrMore>
|
706
|
+
</element>
|
707
|
+
</define>
|
708
|
+
<define name="rt">
|
709
|
+
<element name="rt">
|
710
|
+
<zeroOrMore>
|
711
|
+
<ref name="PureTextElement"/>
|
712
|
+
</zeroOrMore>
|
713
|
+
</element>
|
714
|
+
</define>
|
715
|
+
<define name="br">
|
716
|
+
<element name="br">
|
717
|
+
<empty/>
|
718
|
+
</element>
|
719
|
+
</define>
|
720
|
+
<define name="hr">
|
721
|
+
<element name="hr">
|
722
|
+
<empty/>
|
723
|
+
</element>
|
724
|
+
</define>
|
725
|
+
<define name="pagebreak">
|
726
|
+
<element name="pagebreak">
|
727
|
+
<empty/>
|
728
|
+
</element>
|
729
|
+
</define>
|
730
|
+
<define name="index">
|
731
|
+
<element name="index">
|
732
|
+
<optional>
|
733
|
+
<attribute name="to">
|
734
|
+
<data type="IDREF"/>
|
735
|
+
</attribute>
|
736
|
+
</optional>
|
737
|
+
<element name="primary">
|
738
|
+
<oneOrMore>
|
739
|
+
<ref name="PureTextElement"/>
|
740
|
+
</oneOrMore>
|
741
|
+
</element>
|
742
|
+
<optional>
|
743
|
+
<element name="secondary">
|
744
|
+
<oneOrMore>
|
745
|
+
<ref name="PureTextElement"/>
|
746
|
+
</oneOrMore>
|
747
|
+
</element>
|
748
|
+
</optional>
|
749
|
+
<optional>
|
750
|
+
<element name="tertiary">
|
751
|
+
<oneOrMore>
|
752
|
+
<ref name="PureTextElement"/>
|
753
|
+
</oneOrMore>
|
754
|
+
</element>
|
755
|
+
</optional>
|
756
|
+
</element>
|
757
|
+
</define>
|
758
|
+
<define name="index-xref">
|
759
|
+
<element name="index-xref">
|
760
|
+
<attribute name="also">
|
761
|
+
<data type="boolean"/>
|
762
|
+
</attribute>
|
763
|
+
<element name="primary">
|
764
|
+
<oneOrMore>
|
765
|
+
<ref name="PureTextElement"/>
|
766
|
+
</oneOrMore>
|
767
|
+
</element>
|
768
|
+
<optional>
|
769
|
+
<element name="secondary">
|
770
|
+
<oneOrMore>
|
771
|
+
<ref name="PureTextElement"/>
|
772
|
+
</oneOrMore>
|
773
|
+
</element>
|
774
|
+
</optional>
|
775
|
+
<optional>
|
776
|
+
<element name="tertiary">
|
777
|
+
<oneOrMore>
|
778
|
+
<ref name="PureTextElement"/>
|
779
|
+
</oneOrMore>
|
780
|
+
</element>
|
781
|
+
</optional>
|
782
|
+
<element name="target">
|
783
|
+
<oneOrMore>
|
784
|
+
<ref name="PureTextElement"/>
|
785
|
+
</oneOrMore>
|
786
|
+
</element>
|
787
|
+
</element>
|
788
|
+
</define>
|
789
|
+
<!-- bare ID element, used for referencing arbitrary spans of text -->
|
790
|
+
<define name="bookmark">
|
791
|
+
<element name="bookmark">
|
792
|
+
<attribute name="id">
|
793
|
+
<data type="ID"/>
|
794
|
+
</attribute>
|
795
|
+
<empty/>
|
796
|
+
</element>
|
797
|
+
</define>
|
798
|
+
<define name="ReferenceFormat">
|
799
|
+
<choice>
|
800
|
+
<value>external</value>
|
801
|
+
<value>inline</value>
|
802
|
+
<value>footnote</value>
|
803
|
+
<value>callout</value>
|
804
|
+
</choice>
|
805
|
+
</define>
|
806
|
+
<define name="eref">
|
807
|
+
<element name="eref">
|
808
|
+
<ref name="erefType"/>
|
809
|
+
</element>
|
810
|
+
</define>
|
811
|
+
<define name="erefType">
|
812
|
+
<optional>
|
813
|
+
<attribute name="normative">
|
814
|
+
<data type="boolean"/>
|
815
|
+
</attribute>
|
816
|
+
</optional>
|
817
|
+
<attribute name="citeas"/>
|
818
|
+
<attribute name="type">
|
819
|
+
<ref name="ReferenceFormat"/>
|
820
|
+
</attribute>
|
821
|
+
<optional>
|
822
|
+
<attribute name="alt"/>
|
823
|
+
</optional>
|
824
|
+
<ref name="CitationType"/>
|
825
|
+
<text/>
|
826
|
+
</define>
|
827
|
+
<define name="hyperlink">
|
828
|
+
<element name="link">
|
829
|
+
<attribute name="target">
|
830
|
+
<data type="anyURI"/>
|
831
|
+
</attribute>
|
832
|
+
<attribute name="type">
|
833
|
+
<ref name="ReferenceFormat"/>
|
834
|
+
</attribute>
|
835
|
+
<optional>
|
836
|
+
<attribute name="alt"/>
|
837
|
+
</optional>
|
838
|
+
<text/>
|
839
|
+
</element>
|
840
|
+
</define>
|
841
|
+
<define name="xref">
|
842
|
+
<element name="xref">
|
843
|
+
<attribute name="target">
|
844
|
+
<data type="IDREF"/>
|
845
|
+
</attribute>
|
846
|
+
<attribute name="type">
|
847
|
+
<ref name="ReferenceFormat"/>
|
848
|
+
</attribute>
|
849
|
+
<optional>
|
850
|
+
<attribute name="alt"/>
|
851
|
+
</optional>
|
852
|
+
<text/>
|
853
|
+
</element>
|
854
|
+
</define>
|
855
|
+
<define name="fn">
|
856
|
+
<element name="fn">
|
857
|
+
<attribute name="reference"/>
|
858
|
+
<oneOrMore>
|
859
|
+
<ref name="paragraph"/>
|
860
|
+
</oneOrMore>
|
861
|
+
</element>
|
862
|
+
</define>
|
863
|
+
<!--
|
864
|
+
This is xref with fixed @type="footnote", and @target built in as paragraph+
|
865
|
+
@reference replaces ReferenceElement/text
|
866
|
+
so <fn reference="2"><p>This is a footnote</p></fn>
|
867
|
+
corresponds to
|
868
|
+
<eref type="footnote" target="fn2">2</xref> <p id="fn2">This is a footnote</p>
|
869
|
+
-->
|
870
|
+
<define name="callout">
|
871
|
+
<element name="callout">
|
872
|
+
<attribute name="target">
|
873
|
+
<data type="IDREF"/>
|
874
|
+
</attribute>
|
875
|
+
<text/>
|
876
|
+
</element>
|
877
|
+
</define>
|
878
|
+
<!--
|
879
|
+
This is xref with fixed @type="callout"; the target by convention is in an annotation in the same source code snippet
|
880
|
+
so <callout target="xyz">1</callout>
|
881
|
+
corresponds to <xref type="callout" target="xyz">1</xref>
|
882
|
+
-->
|
883
|
+
<define name="image">
|
884
|
+
<element name="image">
|
885
|
+
<attribute name="id">
|
886
|
+
<data type="ID"/>
|
887
|
+
</attribute>
|
888
|
+
<attribute name="src">
|
889
|
+
<data type="anyURI"/>
|
890
|
+
</attribute>
|
891
|
+
<attribute name="mimetype"/>
|
892
|
+
<optional>
|
893
|
+
<attribute name="filename"/>
|
894
|
+
</optional>
|
895
|
+
<optional>
|
896
|
+
<attribute name="width">
|
897
|
+
<choice>
|
898
|
+
<data type="int"/>
|
899
|
+
<value>auto</value>
|
900
|
+
</choice>
|
901
|
+
</attribute>
|
902
|
+
</optional>
|
903
|
+
<optional>
|
904
|
+
<attribute name="height">
|
905
|
+
<choice>
|
906
|
+
<data type="int"/>
|
907
|
+
<value>auto</value>
|
908
|
+
</choice>
|
909
|
+
</attribute>
|
910
|
+
</optional>
|
911
|
+
<optional>
|
912
|
+
<attribute name="alt"/>
|
913
|
+
</optional>
|
914
|
+
<optional>
|
915
|
+
<attribute name="title"/>
|
916
|
+
</optional>
|
917
|
+
<optional>
|
918
|
+
<attribute name="longdesc">
|
919
|
+
<data type="anyURI"/>
|
920
|
+
</attribute>
|
921
|
+
</optional>
|
922
|
+
</element>
|
923
|
+
</define>
|
924
|
+
<define name="video">
|
925
|
+
<element name="video">
|
926
|
+
<attribute name="id">
|
927
|
+
<data type="ID"/>
|
928
|
+
</attribute>
|
929
|
+
<attribute name="src">
|
930
|
+
<data type="anyURI"/>
|
931
|
+
</attribute>
|
932
|
+
<attribute name="mimetype"/>
|
933
|
+
<optional>
|
934
|
+
<attribute name="filename"/>
|
935
|
+
</optional>
|
936
|
+
<optional>
|
937
|
+
<attribute name="width">
|
938
|
+
<choice>
|
939
|
+
<data type="int"/>
|
940
|
+
<value>auto</value>
|
941
|
+
</choice>
|
942
|
+
</attribute>
|
943
|
+
</optional>
|
944
|
+
<optional>
|
945
|
+
<attribute name="height">
|
946
|
+
<choice>
|
947
|
+
<data type="int"/>
|
948
|
+
<value>auto</value>
|
949
|
+
</choice>
|
950
|
+
</attribute>
|
951
|
+
</optional>
|
952
|
+
<optional>
|
953
|
+
<attribute name="alt"/>
|
954
|
+
</optional>
|
955
|
+
<optional>
|
956
|
+
<attribute name="title"/>
|
957
|
+
</optional>
|
958
|
+
<optional>
|
959
|
+
<attribute name="longdesc">
|
960
|
+
<data type="anyURI"/>
|
961
|
+
</attribute>
|
962
|
+
</optional>
|
963
|
+
<zeroOrMore>
|
964
|
+
<ref name="altsource"/>
|
965
|
+
</zeroOrMore>
|
966
|
+
</element>
|
967
|
+
</define>
|
968
|
+
<define name="audio">
|
969
|
+
<element name="audio">
|
970
|
+
<attribute name="id">
|
971
|
+
<data type="ID"/>
|
972
|
+
</attribute>
|
973
|
+
<attribute name="src">
|
974
|
+
<data type="anyURI"/>
|
975
|
+
</attribute>
|
976
|
+
<attribute name="mimetype"/>
|
977
|
+
<optional>
|
978
|
+
<attribute name="filename"/>
|
979
|
+
</optional>
|
980
|
+
<optional>
|
981
|
+
<attribute name="alt"/>
|
982
|
+
</optional>
|
983
|
+
<optional>
|
984
|
+
<attribute name="title"/>
|
985
|
+
</optional>
|
986
|
+
<optional>
|
987
|
+
<attribute name="longdesc">
|
988
|
+
<data type="anyURI"/>
|
989
|
+
</attribute>
|
990
|
+
</optional>
|
991
|
+
<zeroOrMore>
|
992
|
+
<ref name="altsource"/>
|
993
|
+
</zeroOrMore>
|
994
|
+
</element>
|
995
|
+
</define>
|
996
|
+
<define name="altsource">
|
997
|
+
<element name="altsource">
|
998
|
+
<attribute name="src">
|
999
|
+
<data type="anyURI"/>
|
1000
|
+
</attribute>
|
1001
|
+
<attribute name="mimetype"/>
|
1002
|
+
<optional>
|
1003
|
+
<attribute name="filename"/>
|
1004
|
+
</optional>
|
1005
|
+
</element>
|
1006
|
+
</define>
|
1007
|
+
<define name="stem">
|
1008
|
+
<element name="stem">
|
1009
|
+
<attribute name="type">
|
1010
|
+
<choice>
|
1011
|
+
<value>MathML</value>
|
1012
|
+
<value>AsciiMath</value>
|
1013
|
+
</choice>
|
1014
|
+
</attribute>
|
1015
|
+
<oneOrMore>
|
1016
|
+
<choice>
|
1017
|
+
<text/>
|
1018
|
+
<ref name="AnyElement"/>
|
1019
|
+
</choice>
|
1020
|
+
</oneOrMore>
|
1021
|
+
</element>
|
1022
|
+
</define>
|
1023
|
+
<define name="annotation">
|
1024
|
+
<element name="annotation">
|
1025
|
+
<attribute name="id">
|
1026
|
+
<data type="ID"/>
|
1027
|
+
</attribute>
|
1028
|
+
<ref name="paragraph"/>
|
1029
|
+
</element>
|
1030
|
+
</define>
|
1031
|
+
<define name="ul">
|
1032
|
+
<element name="ul">
|
1033
|
+
<attribute name="id">
|
1034
|
+
<data type="ID"/>
|
1035
|
+
</attribute>
|
1036
|
+
<oneOrMore>
|
1037
|
+
<ref name="li"/>
|
1038
|
+
</oneOrMore>
|
1039
|
+
<zeroOrMore>
|
1040
|
+
<ref name="note"/>
|
1041
|
+
</zeroOrMore>
|
1042
|
+
</element>
|
1043
|
+
</define>
|
1044
|
+
<define name="li">
|
1045
|
+
<element name="li">
|
1046
|
+
<optional>
|
1047
|
+
<attribute name="id">
|
1048
|
+
<data type="ID"/>
|
1049
|
+
</attribute>
|
1050
|
+
</optional>
|
1051
|
+
<oneOrMore>
|
1052
|
+
<ref name="paragraph-with-footnote"/>
|
1053
|
+
</oneOrMore>
|
1054
|
+
</element>
|
1055
|
+
</define>
|
1056
|
+
<define name="ol">
|
1057
|
+
<element name="ol">
|
1058
|
+
<attribute name="id">
|
1059
|
+
<data type="ID"/>
|
1060
|
+
</attribute>
|
1061
|
+
<attribute name="type">
|
1062
|
+
<choice>
|
1063
|
+
<value>roman</value>
|
1064
|
+
<value>alphabet</value>
|
1065
|
+
<value>arabic</value>
|
1066
|
+
<value>roman_upper</value>
|
1067
|
+
<value>alphabet_upper</value>
|
1068
|
+
</choice>
|
1069
|
+
</attribute>
|
1070
|
+
<optional>
|
1071
|
+
<attribute name="start"/>
|
1072
|
+
</optional>
|
1073
|
+
<oneOrMore>
|
1074
|
+
<ref name="li"/>
|
1075
|
+
</oneOrMore>
|
1076
|
+
<zeroOrMore>
|
1077
|
+
<ref name="note"/>
|
1078
|
+
</zeroOrMore>
|
1079
|
+
</element>
|
1080
|
+
</define>
|
1081
|
+
<define name="dl">
|
1082
|
+
<element name="dl">
|
1083
|
+
<attribute name="id">
|
1084
|
+
<data type="ID"/>
|
1085
|
+
</attribute>
|
1086
|
+
<oneOrMore>
|
1087
|
+
<ref name="dt"/>
|
1088
|
+
<ref name="dd"/>
|
1089
|
+
</oneOrMore>
|
1090
|
+
<zeroOrMore>
|
1091
|
+
<ref name="note"/>
|
1092
|
+
</zeroOrMore>
|
1093
|
+
</element>
|
1094
|
+
</define>
|
1095
|
+
<define name="dt">
|
1096
|
+
<element name="dt">
|
1097
|
+
<zeroOrMore>
|
1098
|
+
<ref name="TextElement"/>
|
1099
|
+
</zeroOrMore>
|
1100
|
+
</element>
|
1101
|
+
</define>
|
1102
|
+
<define name="dd">
|
1103
|
+
<element name="dd">
|
1104
|
+
<zeroOrMore>
|
1105
|
+
<ref name="paragraph-with-footnote"/>
|
1106
|
+
</zeroOrMore>
|
1107
|
+
</element>
|
1108
|
+
</define>
|
1109
|
+
<define name="ext">
|
1110
|
+
<element name="ext">
|
1111
|
+
<ref name="BibDataExtensionType"/>
|
1112
|
+
</element>
|
1113
|
+
</define>
|
1114
|
+
<define name="BibDataExtensionType">
|
1115
|
+
<ref name="doctype"/>
|
1116
|
+
</define>
|
1117
|
+
<define name="doctype">
|
1118
|
+
<element name="doctype">
|
1119
|
+
<ref name="DocumentType"/>
|
1120
|
+
</element>
|
1121
|
+
</define>
|
1122
|
+
<define name="DocumentType">
|
1123
|
+
<value>document</value>
|
1124
|
+
</define>
|
1125
|
+
<define name="BibData">
|
1126
|
+
<ref name="BibliographicItem"/>
|
1127
|
+
<optional>
|
1128
|
+
<ref name="ext"/>
|
1129
|
+
</optional>
|
1130
|
+
</define>
|
1131
|
+
</grammar>
|