2023-02-26 12:35:48 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<xs:schema
|
2024-01-15 20:26:56 +08:00
|
|
|
targetNamespace="https://book.sukazyo.cc/"
|
|
|
|
xmlns:phb="https://book.sukazyo.cc/"
|
2023-02-26 12:35:48 +08:00
|
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
|
|
elementFormDefault="qualified"
|
|
|
|
>
|
|
|
|
|
2024-01-15 20:26:56 +08:00
|
|
|
<xs:include schemaLocation="./book.xsd" />
|
|
|
|
<xs:include schemaLocation="./configurations.xsd" />
|
2023-02-26 12:35:48 +08:00
|
|
|
|
|
|
|
<xs:element name="BookShelf">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
|
2023-02-26 16:12:45 +08:00
|
|
|
<xs:element name="site_name" type="xs:string" />
|
2024-01-15 20:26:56 +08:00
|
|
|
<xs:element name="site_icon" type="xs:string" minOccurs="0" />
|
2023-02-26 16:12:45 +08:00
|
|
|
|
2024-01-15 20:26:56 +08:00
|
|
|
<xs:element name="configurations" type="phb:phb-config-level-site" />
|
2023-02-26 12:35:48 +08:00
|
|
|
|
2023-02-26 16:12:45 +08:00
|
|
|
<xs:element name="links">
|
|
|
|
<xs:complexType>
|
2024-01-15 20:26:56 +08:00
|
|
|
<xs:group ref="phb:linkElement" maxOccurs="unbounded"/>
|
2023-02-26 16:12:45 +08:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2023-02-26 12:35:48 +08:00
|
|
|
|
2023-02-26 16:12:45 +08:00
|
|
|
<xs:element name="books">
|
|
|
|
<xs:complexType>
|
2024-01-15 20:26:56 +08:00
|
|
|
<xs:group ref="phb:bookElement" maxOccurs="unbounded" />
|
2023-02-26 16:12:45 +08:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2023-02-26 12:35:48 +08:00
|
|
|
|
2024-01-15 20:26:56 +08:00
|
|
|
<xs:element name="root_book" type="phb:bookContents" />
|
2023-02-26 12:35:48 +08:00
|
|
|
|
|
|
|
</xs:sequence>
|
2023-02-26 16:12:45 +08:00
|
|
|
<xs:attribute name="version" type="xs:string" />
|
2023-02-26 12:35:48 +08:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
2023-02-26 16:12:45 +08:00
|
|
|
<xs:group name="linkElement">
|
|
|
|
<xs:choice>
|
2023-02-26 12:35:48 +08:00
|
|
|
|
|
|
|
<xs:element name="Link">
|
|
|
|
<xs:complexType>
|
2023-02-26 16:12:45 +08:00
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="xs:string">
|
|
|
|
<xs:attribute name="href" type="xs:anyURI" use="required" />
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
2023-02-26 12:35:48 +08:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
|
|
|
<xs:element name="Collection">
|
|
|
|
<xs:complexType>
|
2023-02-26 16:12:45 +08:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="caption" type="xs:string" />
|
2024-01-15 20:26:56 +08:00
|
|
|
<xs:group ref="phb:linkElement" maxOccurs="unbounded" />
|
2023-02-26 16:12:45 +08:00
|
|
|
</xs:sequence>
|
2023-02-26 12:35:48 +08:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
|
|
|
</xs:choice>
|
2023-02-26 16:12:45 +08:00
|
|
|
</xs:group>
|
2023-02-26 12:35:48 +08:00
|
|
|
|
2023-02-26 16:12:45 +08:00
|
|
|
<xs:group name="bookElement">
|
|
|
|
<xs:choice>
|
2023-02-26 12:35:48 +08:00
|
|
|
|
|
|
|
<xs:element name="Book">
|
|
|
|
<xs:complexType>
|
2023-02-26 16:12:45 +08:00
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="xs:string">
|
|
|
|
<xs:attribute name="id" type="xs:string" use="required" />
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
2023-02-26 12:35:48 +08:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
|
|
|
<xs:element name="Collection">
|
|
|
|
<xs:complexType>
|
2023-02-26 16:12:45 +08:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="caption" type="xs:string" />
|
2024-01-15 20:26:56 +08:00
|
|
|
<xs:group ref="phb:bookElement" maxOccurs="unbounded" />
|
2023-02-26 16:12:45 +08:00
|
|
|
</xs:sequence>
|
2023-02-26 12:35:48 +08:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
|
|
|
</xs:choice>
|
2023-02-26 16:12:45 +08:00
|
|
|
</xs:group>
|
2023-02-26 12:35:48 +08:00
|
|
|
|
|
|
|
</xs:schema>
|