-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
530 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# NOTICES | ||
|
||
This package incorporates material from third parties. | ||
|
||
## xml.xsd | ||
|
||
Source: <http://www.w3.org/2001/xml.xsd> | ||
|
||
[Software and Document license - 2023 version](https://www.w3.org/copyright/software-license-2023/) | ||
|
||
License | ||
|
||
```txt | ||
By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. | ||
Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications: | ||
* The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. | ||
* Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C software and document short notice should be included. | ||
* Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived from [title and URI of the W3C document]. Copyright © [$year-of-document] World Wide Web Consortium. https://www.w3.org/copyright/software-license-2023/" | ||
``` | ||
|
||
Disclaimers | ||
|
||
```txt | ||
THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. | ||
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT. | ||
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,210 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:note="http://ns.direct4b.com/note" | ||
targetNamespace="http://ns.direct4b.com/note" | ||
elementFormDefault="unqualified" | ||
attributeFormDefault="unqualified"> | ||
<xs:import namespace='http://www.w3.org/XML/1998/namespace' | ||
schemaLocation='xml.xsd' /> | ||
<xs:element name="note"> | ||
<xs:annotation> | ||
<xs:documentation>root tag</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType mixed="true"> | ||
<xs:complexContent> | ||
<xs:extension base="note:note.content"> | ||
<xs:attribute name="version" use="required"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:integer"> | ||
<xs:minInclusive value="0" /> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
<xs:attribute ref="xml:space" fixed="preserve" /> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="checkbox"> | ||
<xs:annotation> | ||
<xs:documentation>checkbox</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType mixed="true"> | ||
<xs:complexContent> | ||
<xs:extension base="note:checkbox.content"> | ||
<xs:attribute name="checked" type="xs:boolean" use="optional" default="false" /> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="textsize"> | ||
<xs:annotation> | ||
<xs:documentation>size of text</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType mixed="true"> | ||
<xs:complexContent> | ||
<xs:extension base="note:textsize.content"> | ||
<xs:attribute name="value" use="required"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="x-large" /> | ||
<xs:enumeration value="large" /> | ||
<xs:enumeration value="medium" /> | ||
<xs:enumeration value="small" /> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
<xs:attribute ref="xml:space" fixed="preserve" /> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="color"> | ||
<xs:annotation> | ||
<xs:documentation>color of text</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType mixed="true"> | ||
<xs:complexContent> | ||
<xs:extension base="note:color.content"> | ||
<xs:attribute name="name" use="required"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="red" /> | ||
<xs:enumeration value="blue" /> | ||
<xs:enumeration value="green" /> | ||
<xs:enumeration value="default" /> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
<xs:attribute ref="xml:space" fixed="preserve" /> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="link"> | ||
<xs:annotation> | ||
<xs:documentation>link</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType mixed="true"> | ||
<xs:complexContent> | ||
<xs:extension base="note:link.content"> | ||
<xs:attribute name="url" type="note:URI" use="required" /> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="b"> | ||
<xs:annotation> | ||
<xs:documentation>bold font</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType mixed="true"> | ||
<xs:complexContent> | ||
<xs:extension base="note:b.content"> | ||
<xs:attribute ref="xml:space" fixed="preserve" /> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="u"> | ||
<xs:annotation> | ||
<xs:documentation>under line</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType mixed="true"> | ||
<xs:complexContent> | ||
<xs:extension base="note:u.content"> | ||
<xs:attribute ref="xml:space" fixed="preserve" /> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="strike"> | ||
<xs:annotation> | ||
<xs:documentation>strike-through line</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType mixed="true"> | ||
<xs:complexContent> | ||
<xs:extension base="note:strike.content"> | ||
<xs:attribute ref="xml:space" fixed="preserve" /> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:complexType name="note.content" mixed="true"> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element ref="note:textsize" /> | ||
<xs:element ref="note:color" /> | ||
<xs:element ref="note:b" /> | ||
<xs:element ref="note:link" /> | ||
<xs:element ref="note:u" /> | ||
<xs:element ref="note:strike" /> | ||
<xs:element ref="note:checkbox" /> | ||
</xs:choice> | ||
</xs:complexType> | ||
<xs:complexType name="checkbox.content" mixed="true"> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element ref="note:color" /> | ||
<xs:element ref="note:b" /> | ||
<xs:element ref="note:link" /> | ||
<xs:element ref="note:u" /> | ||
<xs:element ref="note:strike" /> | ||
</xs:choice> | ||
</xs:complexType> | ||
<xs:complexType name="textsize.content" mixed="true"> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element ref="note:color" /> | ||
<xs:element ref="note:b" /> | ||
<xs:element ref="note:link" /> | ||
<xs:element ref="note:u" /> | ||
<xs:element ref="note:strike" /> | ||
</xs:choice> | ||
</xs:complexType> | ||
<xs:complexType name="color.content" mixed="true"> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element ref="note:textsize" /> | ||
<xs:element ref="note:b" /> | ||
<xs:element ref="note:link" /> | ||
<xs:element ref="note:u" /> | ||
<xs:element ref="note:strike" /> | ||
</xs:choice> | ||
</xs:complexType> | ||
<xs:complexType name="link.content" mixed="true"> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element ref="note:textsize" /> | ||
<xs:element ref="note:b" /> | ||
<xs:element ref="note:strike" /> | ||
</xs:choice> | ||
</xs:complexType> | ||
<xs:complexType name="u.content" mixed="true"> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element ref="note:textsize" /> | ||
<xs:element ref="note:color" /> | ||
<xs:element ref="note:b" /> | ||
<xs:element ref="note:link" /> | ||
<xs:element ref="note:strike" /> | ||
</xs:choice> | ||
</xs:complexType> | ||
<xs:complexType name="strike.content" mixed="true"> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element ref="note:textsize" /> | ||
<xs:element ref="note:color" /> | ||
<xs:element ref="note:b" /> | ||
<xs:element ref="note:link" /> | ||
<xs:element ref="note:u" /> | ||
</xs:choice> | ||
</xs:complexType> | ||
<xs:complexType name="b.content" mixed="true"> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element ref="note:textsize" /> | ||
<xs:element ref="note:color" /> | ||
<xs:element ref="note:link" /> | ||
<xs:element ref="note:u" /> | ||
<xs:element ref="note:strike" /> | ||
</xs:choice> | ||
</xs:complexType> | ||
<xs:simpleType name="URI"> | ||
<xs:annotation> | ||
<xs:documentation> a Uniform Resource Identifier, see [RFC2396] </xs:documentation> | ||
</xs:annotation> | ||
<xs:restriction base="xs:anyURI" /> | ||
</xs:simpleType> | ||
</xs:schema> |
Oops, something went wrong.