]> granicus.if.org Git - sysstat/commitdiff
XSD document updated.
authorSebastien Godard <sysstat@orange.fr>
Tue, 8 May 2012 12:18:59 +0000 (14:18 +0200)
committerSebastien Godard <sysstat@orange.fr>
Tue, 8 May 2012 12:18:59 +0000 (14:18 +0200)
A maxOccurs indicator has been added for the timestamp element.
This is indicator is set to "unbounded", which is compulsory here
as the default value is 1 if not specified.

Mail from Frank Glinka <glinkaf@uni-muenster.de> 24/04/2012:

There seem to be gaps/inconsistencies between the produced XML and the  sysstat.xsd that you provide on your website. The xsd does not specify any maximum occurrence indicators, which in that case default to '1'. For example, although the 'timestamp' element occurs multiple times within the 'statistics' element inside the XML, the xsd claims it appears exactly once. In that case, a 'maxOccurs="unbounded"' is required. (This is an issue if I use Java's JAXB and your sysstat.xsd to read & parse the XML file automatically.)

See:
http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#Particle_details
http://www.w3schools.com/schema/schema_complex_indicators.asp

CHANGES
CREDITS
xml/sysstat.xsd

diff --git a/CHANGES b/CHANGES
index fba1a72ba432b5c38f75cb72c6c2792b97ca5902..2e1ff3f69a29db8fde13979e5fb4afc55373951d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,7 +4,10 @@ xxxx/xx/xx: Version 10.0.5 - Sebastien Godard (sysstat <at> orange.fr)
        * [Alain Chereau]: Options -g and -T added to iostat. These
          options enable the user to display statistics for groups of
          devices.
+       * XSD document updated: Added a maxOccurs indicator for the
+         timestamp element.
        * [Peter Schiffer]: Set exit code to 0 for sa2 shell script.
+       * iostat manual page updated.
        * CREDITS file updated.
 
 2012/03/07: Version 10.0.4 - Sebastien Godard (sysstat <at> orange.fr)
diff --git a/CREDITS b/CREDITS
index d8f78e3c07dd56766383a8a097c7e46f25b4da03..8705565cd32c60869997b9a574e428414a341cd3 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -156,6 +156,7 @@ I would also thank the following people for their hints or bug reports
        Damien Faure <damien-jn.faure@bul[...].net>
        Dr. David Alan Gilbert <dave@tre[...].org>
        David Gesswein <djg@drs[...].com>
+       Frank Glinka <glinkaf@uni[...].de>
        Ladislav Hagara <ladislav.hagara@uno[...].cz>
        Don Harrop <don@swb[...].com>
        Jürgen Heinemann <heinemann.juergen@hjc[...].de>
index d98117dadc6a83061b979e3bfdaea5652f0457b6..f885e51f2c93685fa073c84356740e785d4b84d5 100644 (file)
@@ -61,7 +61,7 @@
 <xs:element name="statistics" type="statistics-type"></xs:element>
 <xs:complexType name="statistics-type">
        <xs:sequence>
-               <xs:element name="timestamp" type="timestamp-type"></xs:element>
+               <xs:element name="timestamp" type="timestamp-type" maxOccurs="unbounded"></xs:element>
        </xs:sequence>
 </xs:complexType>