|
1 | 1 | <?xml version="1.0"?>
|
2 | 2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:svg="http://www.w3.org/2000/svg" targetNamespace="http://www.w3.org/1999/xhtml" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
3 | 3 |
|
| 4 | +<!-- ToDos: Indexterm data attributes; special schema for footnotes (thinking <aside class="footnote">); enumerated class for admonitions/examples on div? --> |
| 5 | + |
4 | 6 | <xs:import namespace="http://www.w3.org/1998/Math/MathML" schemaLocation="mathml3/mathml3.xsd"/>
|
5 | 7 | <xs:import namespace="http://www.w3.org/2000/svg" schemaLocation="svg/SVG.xsd"/>
|
6 | 8 |
|
|
36 | 38 | <xs:element ref="h1"/>
|
37 | 39 | <xs:element name="h2" minOccurs="0" type="subheading"/>
|
38 | 40 | <xs:choice maxOccurs="unbounded">
|
| 41 | + <xs:element ref="nav"/> |
39 | 42 | <xs:element name="section" type="bookmaindiv"/>
|
40 | 43 | <!-- Separate out parts, as they have specific child requirements -->
|
41 | 44 | <xs:element name="div" type="bookpart"/>
|
|
314 | 317 | <xs:element ref="map"/>
|
315 | 318 | <xs:element ref="mml:math"/>
|
316 | 319 | <xs:element ref="menu"/>
|
317 |
| - <xs:element ref="nav"/> |
318 | 320 | <xs:element ref="object"/>
|
319 | 321 | <xs:element ref="ol"/>
|
320 | 322 | <xs:element ref="p"/>
|
|
435 | 437 | <xs:group ref="headings" minOccurs="0"/>
|
436 | 438 | <xs:element name="ol" type="nav_doc_ol"/>
|
437 | 439 | </xs:sequence>
|
438 |
| - <xs:attributeGroup ref="globals"/> |
| 440 | + <xs:attribute name="class" use="required" fixed="toc"/> |
| 441 | + <xs:attributeGroup ref="globals_minus_class"/> |
439 | 442 | </xs:complexType>
|
440 | 443 | </xs:element>
|
441 | 444 |
|
|
487 | 490 |
|
488 | 491 | <xs:element name="p" type="inline_children_only"/>
|
489 | 492 |
|
490 |
| -<xs:element name="pre" type="inline_children_only"/> |
| 493 | +<xs:element name="pre"> |
| 494 | + <xs:complexType> |
| 495 | + <xs:complexContent> |
| 496 | + <xs:extension base="inline_children_only"> |
| 497 | + <xs:attribute name="data-language" type="xs:token"/> |
| 498 | + </xs:extension> |
| 499 | + </xs:complexContent> |
| 500 | + </xs:complexType> |
| 501 | +</xs:element> |
491 | 502 |
|
492 | 503 | <!-- Default global version of "section" element is for chapter-level book divisions
|
493 | 504 | (allows for modularization of HTML files at the chapter level),
|
|
1492 | 1503 | <xs:enumeration value="dedication"/>
|
1493 | 1504 | <xs:enumeration value="foreword"/>
|
1494 | 1505 | <xs:enumeration value="glossary"/>
|
| 1506 | + <xs:enumeration value="halftitlepage"/> |
1495 | 1507 | <xs:enumeration value="index"/>
|
1496 | 1508 | <xs:enumeration value="introduction"/>
|
1497 | 1509 | <xs:enumeration value="preface"/>
|
|
1712 | 1724 | <xs:group ref="blockelements" minOccurs="0" maxOccurs="unbounded"/>
|
1713 | 1725 | </xs:sequence>
|
1714 | 1726 | <!-- Note: special class attr restrictions here -->
|
1715 |
| - <xs:attribute name="class" use="required" fixed="sidebar"/> |
1716 |
| - <xs:attributeGroup ref="globals_minus_class"/> |
| 1727 | + <xs:attributeGroup ref="globals"/> |
1717 | 1728 | </xs:complexType>
|
1718 | 1729 |
|
1719 | 1730 | <!-- Subheadings: support subtitles, author attributions, etc. -->
|
|
1820 | 1831 | <xs:element ref="map"/>
|
1821 | 1832 | <xs:element ref="mml:math"/>
|
1822 | 1833 | <xs:element ref="menu"/>
|
1823 |
| - <xs:element ref="nav"/> |
1824 | 1834 | <xs:element ref="object"/>
|
1825 | 1835 | <xs:element ref="ol"/>
|
1826 | 1836 | <xs:element ref="p"/>
|
|
0 commit comments