Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3787771
D2532.id7639.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D2532.id7639.diff
View Options
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -1,3 +1,11 @@
# Nasqueron Schemas
This repository contains schemas used across Nasqueron projects.
+
+## XML
+
+Our schemas follow Venetian Blind design pattern.
+
+### Report
+
+Used by Keruald Report library to generate a report in XML.
diff --git a/report/0.9/report.xsd b/report/0.9/report.xsd
new file mode 100644
--- /dev/null
+++ b/report/0.9/report.xsd
@@ -0,0 +1,53 @@
+<xs:schema
+ attributeFormDefault="unqualified"
+ elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="report" type="reportType" />
+
+ <!-- Report content -->
+
+ <xs:complexType name="entryType">
+ <xs:sequence>
+ <xs:element type="xs:string" name="text"
+ maxOccurs="1" minOccurs="1" />
+ </xs:sequence>
+ <xs:attribute type="xs:string" name="title" use="required" />
+ </xs:complexType>
+
+ <xs:complexType name="sectionType" mixed="true">
+ <xs:sequence>
+ <xs:element type="entryType" name="entry"
+ maxOccurs="unbounded" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute type="xs:string" name="title" use="required" />
+ </xs:complexType>
+
+ <!-- Report metadata -->
+
+ <xs:complexType name="metadataEntryType">
+ <xs:sequence>
+ <xs:element type="xs:string" name="key" minOccurs="1" maxOccurs="1" />
+ <xs:element type="xs:string" name="value" minOccurs="1" maxOccurs="1" />
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="dataType">
+ <xs:sequence>
+ <xs:element type="metadataEntryType" name="entry"
+ maxOccurs="unbounded" minOccurs="1" />
+ </xs:sequence>
+ <xs:attribute type="xs:string" name="title" use="optional" />
+ </xs:complexType>
+
+ <!-- Report root element -->
+
+ <xs:complexType name="reportType">
+ <xs:sequence>
+ <xs:element type="sectionType" name="section"
+ maxOccurs="unbounded" minOccurs="0" />
+ <xs:element type="dataType" name="data" minOccurs="0" maxOccurs="1" />
+ </xs:sequence>
+ <xs:attribute type="xs:string" name="title" use="required" />
+ </xs:complexType>
+</xs:schema>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 19:38 (19 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2267627
Default Alt Text
D2532.id7639.diff (2 KB)
Attached To
Mode
D2532: Draft XSD schema for Report library
Attached
Detach File
Event Timeline
Log In to Comment