relaton-cen 1.8.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/rake.yml +46 -0
- data/.gitignore +14 -0
- data/.rspec +3 -0
- data/.rubocop.yml +10 -0
- data/Gemfile +12 -0
- data/LICENSE.txt +21 -0
- data/README.adoc +203 -0
- data/Rakefile +12 -0
- data/bin/console +15 -0
- data/bin/rspec +29 -0
- data/bin/setup +8 -0
- data/grammars/basicdoc.rng +1131 -0
- data/grammars/biblio.rng +1235 -0
- data/grammars/isodoc.rng +1870 -0
- data/grammars/isostandard.rng +478 -0
- data/grammars/reqt.rng +165 -0
- data/lib/relaton_cen.rb +16 -0
- data/lib/relaton_cen/cen_bibliography.rb +111 -0
- data/lib/relaton_cen/committees.yaml +66 -0
- data/lib/relaton_cen/hit.rb +14 -0
- data/lib/relaton_cen/hit_collection.rb +60 -0
- data/lib/relaton_cen/processor.rb +38 -0
- data/lib/relaton_cen/scrapper.rb +198 -0
- data/lib/relaton_cen/version.rb +5 -0
- data/lib/relaton_cen/xml_parser.rb +28 -0
- data/relaton_cen.gemspec +46 -0
- metadata +185 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c7311d1a1f3e21e2677b0644271a5e7736a6c6b4e56b2740aa68fb56394be690
|
4
|
+
data.tar.gz: 1ff6740c5fe26f97153e0129a956dea49fcef286778eee645dc065cda848385c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 50f8f87fc6c6cf149079a3fcc01d0af7222481a703405e0c82750518cb5df076083a28ba35899be01704d1998c81ee34af06319286a232e2335c9e3f4f23f7ee
|
7
|
+
data.tar.gz: 14e5bd6a95665bceb4d32cdcbc9b50346292dec1134e2235cb1e97fa615c9b2e6c9f68119c1e7dd27ade0ba5ab37462189c71ff8951930defdcbad325f2d51b9
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
name: rake
|
4
|
+
|
5
|
+
on:
|
6
|
+
push:
|
7
|
+
branches: [ master, main ]
|
8
|
+
tags: [ v* ]
|
9
|
+
pull_request:
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
rake:
|
13
|
+
name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
|
14
|
+
runs-on: ${{ matrix.os }}
|
15
|
+
continue-on-error: ${{ matrix.experimental }}
|
16
|
+
strategy:
|
17
|
+
fail-fast: false
|
18
|
+
matrix:
|
19
|
+
ruby: [ '2.7', '2.6', '2.5', '2.4' ]
|
20
|
+
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
21
|
+
experimental: [ false ]
|
22
|
+
include:
|
23
|
+
- ruby: '3.0'
|
24
|
+
os: 'ubuntu-latest'
|
25
|
+
experimental: true
|
26
|
+
- ruby: '3.0'
|
27
|
+
os: 'windows-latest'
|
28
|
+
experimental: true
|
29
|
+
- ruby: '3.0'
|
30
|
+
os: 'macos-latest'
|
31
|
+
experimental: true
|
32
|
+
steps:
|
33
|
+
- uses: actions/checkout@v2
|
34
|
+
with:
|
35
|
+
submodules: true
|
36
|
+
|
37
|
+
# https://github.com/ruby-debug/debase/issues/89#issuecomment-686827382
|
38
|
+
- if: matrix.os == 'macos-latest' && matrix.ruby == '2.5'
|
39
|
+
run: echo BUNDLE_BUILD__DEBASE="--with-cflags=\"-Wno-error=implicit-function-declaration\"" >> $GITHUB_ENV
|
40
|
+
|
41
|
+
- uses: ruby/setup-ruby@v1
|
42
|
+
with:
|
43
|
+
ruby-version: ${{ matrix.ruby }}
|
44
|
+
bundler-cache: true
|
45
|
+
|
46
|
+
- run: bundle exec rake
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,10 @@
|
|
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
|
+
|
5
|
+
inherit_from:
|
6
|
+
- https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
|
7
|
+
AllCops:
|
8
|
+
TargetRubyVersion: 2.4
|
9
|
+
Rails:
|
10
|
+
Enabled: false
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2021 Andrei Kislichenko
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.adoc
ADDED
@@ -0,0 +1,203 @@
|
|
1
|
+
= RelatonCen retrieve CEN Standards for bibliographic use using the BibliographicItem model
|
2
|
+
|
3
|
+
image:https://img.shields.io/gem/v/relaton-cen.svg["Gem Version", link="https://rubygems.org/gems/relaton-cen"]
|
4
|
+
image:https://github.com/relaton/relaton-cen/workflows/rake/badge.svg["Build Status", link="https://github.com/relaton/relaton-cen/actions?workflow=rake"]
|
5
|
+
image:https://codeclimate.com/github/relaton/relaton-cen/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/relaton/relaton-cen"]
|
6
|
+
image:https://img.shields.io/github/issues-pr-raw/relaton/relaton-cen.svg["Pull Requests", link="https://github.com/relaton/relaton-cen/pulls"]
|
7
|
+
image:https://img.shields.io/github/commits-since/relaton/relaton-cen/latest.svg["Commits since latest",link="https://github.com/relaton/relaton-cen/releases"]
|
8
|
+
|
9
|
+
RelatonCen is a Ruby gem that implements the https://github.com/metanorma/metanorma-model-iso#iso-bibliographic-item[IsoBibliographicItem model].
|
10
|
+
|
11
|
+
== Installation
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
[source,ruby]
|
16
|
+
----
|
17
|
+
gem 'relaton-cen'
|
18
|
+
----
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
$ bundle install
|
23
|
+
|
24
|
+
Or install it yourself as:
|
25
|
+
|
26
|
+
$ gem install relaton-cen
|
27
|
+
|
28
|
+
== Usage
|
29
|
+
|
30
|
+
=== Search for a standard using keywords
|
31
|
+
|
32
|
+
[source,ruby]
|
33
|
+
----
|
34
|
+
require 'relaton_cen'
|
35
|
+
|
36
|
+
hit_collection = RelatonCen::CenBibliography.search("CEN ISO/TS 21003-7")
|
37
|
+
=> <RelatonCen::HitCollection:0x00000000017de0 @ref=ISO/TS 21003-7 @fetched=false>
|
38
|
+
|
39
|
+
item = hit_collection[0].fetch
|
40
|
+
=> #<RelatonIsoBib::IsoBibliographicItem:0x00007fadcd45fad8
|
41
|
+
...
|
42
|
+
----
|
43
|
+
|
44
|
+
=== XML serialization
|
45
|
+
[source,ruby]
|
46
|
+
----
|
47
|
+
puts item.to_xml
|
48
|
+
"<bibitem id="CENISO/TS21003-7-2019" type="standard">
|
49
|
+
<fetched>2021-05-30</fetched>
|
50
|
+
<title type="title-main" format="text/plain" language="en" script="Latn">Multilayer piping systems for hot and cold water installations inside buildings</title>
|
51
|
+
<title type="title-part" format="text/plain" language="en" script="Latn">Part 7: Guidance for the assessment of conformity (ISO/TS 21003-7:2019)</title>
|
52
|
+
<title type="main" format="text/plain" language="en" script="Latn">Multilayer piping systems for hot and cold water installations inside buildings - Part 7: Guidance for the assessment of conformity (ISO/TS 21003-7:2019)</title>
|
53
|
+
<uri type="src">https://standards.cen.eu/dyn/www/f?p=204:110:0::::FSP_PROJECT,FSP_ORG_ID:68120,6137&cs=124CA2347A9843B3165EE35F066A30B7C</uri>
|
54
|
+
<docidentifier type="CEN">CEN ISO/TS 21003-7:2019</docidentifier>
|
55
|
+
<date type="adapted">
|
56
|
+
<on>2019-03-28</on>
|
57
|
+
</date>
|
58
|
+
<date type="issued">
|
59
|
+
<on>2019-05-29</on>
|
60
|
+
</date>
|
61
|
+
<date type="announced">
|
62
|
+
<on>2019-08-31</on>
|
63
|
+
</date>
|
64
|
+
<language>en</language>
|
65
|
+
<script>Latn</script>
|
66
|
+
<abstract format="text/plain" language="en" script="Latn">This document gives requirements and guidance for the assessment of conformity of compounds, products, and assemblies in accordance with the applicable part(s) of ISO 21003 intended to be included in the manufacturer's quality plan as part of the quality management system and for the establishment of certification procedures.
|
67
|
+
In conjunction with the other parts of ISO 21003 (see Foreword), this document is applicable to multilayer piping systems intended to be used for hot and cold water installations within buildings for the conveyance of water, whether or not intended for human consumption (domestic systems) and for heating systems, under design pressures and temperatures appropriate to the class of application (see ISO 21003-1:2008, Table 1).</abstract>
|
68
|
+
<status>
|
69
|
+
<stage>Published</stage>
|
70
|
+
</status>
|
71
|
+
<copyright>
|
72
|
+
<from>2019</from>
|
73
|
+
<owner>
|
74
|
+
<organization>
|
75
|
+
<name>European Committee for Standardization</name>
|
76
|
+
<abbreviation>CEN</abbreviation>
|
77
|
+
<uri>https://cen.eu</uri>
|
78
|
+
</organization>
|
79
|
+
</owner>
|
80
|
+
</copyright>
|
81
|
+
<relation type="obsoletes">
|
82
|
+
<bibitem type="standard">
|
83
|
+
<formattedref format="text/plain" language="en" script="Latn">CEN ISO/TS 21003-7:2008/A1:2010</formattedref>
|
84
|
+
<uri type="src">https://standards.cen.eu/dyn/www/f?p=CENWEB:110:0::::FSP_PROJECT:34670&cs=1739483DB0A85EDABBC435CE39F54C548</uri>
|
85
|
+
</bibitem>
|
86
|
+
</relation>
|
87
|
+
<relation type="obsoletes">
|
88
|
+
<bibitem type="standard">
|
89
|
+
<formattedref format="text/plain" language="en" script="Latn">CEN ISO/TS 21003-7:2008</formattedref>
|
90
|
+
<uri type="src">https://standards.cen.eu/dyn/www/f?p=CENWEB:110:0::::FSP_PROJECT:29120&cs=157CFB37153811CB6097F253DF9B57B89</uri>
|
91
|
+
</bibitem>
|
92
|
+
</relation>
|
93
|
+
<relation type="cites">
|
94
|
+
<bibitem type="standard">
|
95
|
+
<formattedref format="text/plain" language="en" script="Latn">ISO 17456</formattedref>
|
96
|
+
<uri type="src">https://standards.cen.eu/dyn/www/f?p=204:111:0::::FSP_PROJECT_CROSSREF,FSP_PROJECT:ISO-SPACE-17456,68120&cs=1FD4205F9B0E21546A862E6AEB321BD3D</uri>
|
97
|
+
</bibitem>
|
98
|
+
</relation>
|
99
|
+
<relation type="cites">
|
100
|
+
<bibitem type="standard">
|
101
|
+
<formattedref format="text/plain" language="en" script="Latn">ISO 21003-1</formattedref>
|
102
|
+
<uri type="src">https://standards.cen.eu/dyn/www/f?p=204:111:0::::FSP_PROJECT_CROSSREF,FSP_PROJECT:ISO-SPACE-21003-1,68120&cs=1E3BAF63C2639CA9E5C4B5F6B7F300413</uri>
|
103
|
+
</bibitem>
|
104
|
+
</relation>
|
105
|
+
<relation type="cites">
|
106
|
+
<bibitem type="standard">
|
107
|
+
<formattedref format="text/plain" language="en" script="Latn">ISO 21003-2</formattedref>
|
108
|
+
<uri type="src">https://standards.cen.eu/dyn/www/f?p=204:111:0::::FSP_PROJECT_CROSSREF,FSP_PROJECT:ISO-SPACE-21003-2,68120&cs=14788DF9FA188AC4B4ECBD949EB95F25C</uri>
|
109
|
+
</bibitem>
|
110
|
+
</relation>
|
111
|
+
<relation type="cites">
|
112
|
+
<bibitem type="standard">
|
113
|
+
<formattedref format="text/plain" language="en" script="Latn">ISO 21003-3</formattedref>
|
114
|
+
<uri type="src">https://standards.cen.eu/dyn/www/f?p=204:111:0::::FSP_PROJECT_CROSSREF,FSP_PROJECT:ISO-SPACE-21003-3,68120&cs=1DF2256C557AAF0DDCF7D85765E85640B</uri>
|
115
|
+
</bibitem>
|
116
|
+
</relation>
|
117
|
+
<relation type="cites">
|
118
|
+
<bibitem type="standard">
|
119
|
+
<formattedref format="text/plain" language="en" script="Latn">ISO 21003-5</formattedref>
|
120
|
+
<uri type="src">https://standards.cen.eu/dyn/www/f?p=204:111:0::::FSP_PROJECT_CROSSREF,FSP_PROJECT:ISO-SPACE-21003-5,68120&cs=196D7C9FE2A53D9185BE4E4A2DEE23636</uri>
|
121
|
+
</bibitem>
|
122
|
+
</relation>
|
123
|
+
<place>London</place>
|
124
|
+
</bibitem>"
|
125
|
+
----
|
126
|
+
|
127
|
+
With `bibdata: true` option XML output wrapped with `bibdata` element and `ext` element added.
|
128
|
+
[source,ruby]
|
129
|
+
----
|
130
|
+
puts item.to_xml(bibdata: true)
|
131
|
+
"bibdata type="standard">
|
132
|
+
<fetched>2021-05-30</fetched>
|
133
|
+
<title type="title-main" format="text/plain" language="en" script="Latn">Multilayer piping systems for hot and cold water installations inside buildings</title>
|
134
|
+
...
|
135
|
+
<ext>
|
136
|
+
<doctype>international-standard</doctype>
|
137
|
+
<editorialgroup>
|
138
|
+
<technical-committee number="155" type="TC">Plastics piping systems and ducting systems</technical-committee>
|
139
|
+
</editorialgroup>
|
140
|
+
<ics>
|
141
|
+
<code>23.040.20</code>
|
142
|
+
<text>Plastics pipes</text>
|
143
|
+
</ics>
|
144
|
+
<ics>
|
145
|
+
<code>91.140.60</code>
|
146
|
+
<text>Water supply systems</text>
|
147
|
+
</ics>
|
148
|
+
<structuredidentifier type="CEN">
|
149
|
+
<project-number part="7">21003</project-number>
|
150
|
+
</structuredidentifier>
|
151
|
+
</ext>
|
152
|
+
</bibdata>"
|
153
|
+
----
|
154
|
+
|
155
|
+
=== Get code, and year
|
156
|
+
[source,ruby]
|
157
|
+
----
|
158
|
+
elatonCen::CenBibliography.get "CEN ISO/TS 21003-7:2019"
|
159
|
+
[relaton-cen] ("CEN ISO/TS 21003-7") fetching...
|
160
|
+
[relaton-cen] ("CEN ISO/TS 21003-7") found CEN ISO/TS 21003-7:2019
|
161
|
+
=> #<RelatonIsoBib::IsoBibliographicItem:0x00007fadcd596c58
|
162
|
+
...
|
163
|
+
|
164
|
+
RelatonCen::CenBibliography.get "CEN ISO/TS 21003-7", "2019"
|
165
|
+
[relaton-cen] ("CEN ISO/TS 21003-7") fetching...
|
166
|
+
[relaton-cen] ("CEN ISO/TS 21003-7") found CEN ISO/TS 21003-7:2019
|
167
|
+
=> #<RelatonIsoBib::IsoBibliographicItem:0x00007fadcd5df9f8
|
168
|
+
...
|
169
|
+
----
|
170
|
+
|
171
|
+
=== Create bibliographic item form YAML
|
172
|
+
[source,ruby]
|
173
|
+
----
|
174
|
+
hash = YAML.load_file 'spec/fixtures/bibdata.yaml'
|
175
|
+
=> {"id"=>"CENISO/TS21003-7-2019",
|
176
|
+
...
|
177
|
+
|
178
|
+
RelatonIsoBib::IsoBibliographicItem.from_hash hash
|
179
|
+
=> #<RelatonIsoBib::IsoBibliographicItem:0x00007fb21485d450
|
180
|
+
...
|
181
|
+
----
|
182
|
+
|
183
|
+
=== Create bibliographic item from XML
|
184
|
+
[source,ruby]
|
185
|
+
----
|
186
|
+
RelatonBsi::XMLParser.from_xml File.read("spec/fixtures/bibdata.xml", encoding: "UTF-8")
|
187
|
+
=> #<RelatonBsi::BsiBibliographicItem:0x007feb14d50b68
|
188
|
+
...
|
189
|
+
----
|
190
|
+
|
191
|
+
== Development
|
192
|
+
|
193
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
194
|
+
|
195
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
196
|
+
|
197
|
+
== Contributing
|
198
|
+
|
199
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/relaton/relaton-cen.
|
200
|
+
|
201
|
+
== License
|
202
|
+
|
203
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "bundler/setup"
|
5
|
+
require "relaton_cen"
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require "irb"
|
15
|
+
IRB.start(__FILE__)
|
data/bin/rspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rspec' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require "rubygems"
|
27
|
+
require "bundler/setup"
|
28
|
+
|
29
|
+
load Gem.bin_path("rspec-core", "rspec")
|
data/bin/setup
ADDED
@@ -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>
|