Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F9858867
D2532.id6386.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.id6386.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:attribute type="xs:string" name="title" use="required" />
+ <xs:sequence>
+ <xs:element type="xs:string" name="text"
+ maxOccurs="1" minOccurs="1" />
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="sectionType" mixed="true">
+ <xs:attribute type="xs:string" name="title" use="required" />
+ <xs:sequence>
+ <xs:element type="entryType" name="entry"
+ maxOccurs="unbounded" minOccurs="0" />
+ </xs:sequence>
+ </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:attribute type="xs:string" name="title" use="optional" />
+ <xs:sequence>
+ <xs:element type="metadataEntryType" name="entry"
+ maxOccurs="unbounded" minOccurs="1" />
+ </xs:sequence>
+ </xs:complexType>
+
+ <!-- Report root element -->
+
+ <xs:complexType name="reportType">
+ <xs:attribute type="xs:string" name="title" use="required" />
+ <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:complexType>
+</xs:schema>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 16, 08:39 (12 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2737074
Default Alt Text
D2532.id6386.diff (2 KB)
Attached To
Mode
D2532: Draft XSD schema for Report library
Attached
Detach File
Event Timeline
Log In to Comment