Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768219
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
View Options
diff --git a/README.md b/README.md
index 8636dee..7957a83 100644
--- 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
index 0000000..89409ce
--- /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/x-diff
Expires
Mon, Nov 25, 07:10 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259677
Default Alt Text
(2 KB)
Attached To
Mode
rSCHEMA Schemas
Attached
Detach File
Event Timeline
Log In to Comment