mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11964 57a11ea4-9604-0410-9ed3-97b8803252fd
155 lines
5.7 KiB
XML
155 lines
5.7 KiB
XML
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
targetNamespace="http://qof.sourceforge.net/"
|
|
xmlns:qof-qsf="http://qof.sourceforge.net/"
|
|
elementFormDefault="qualified"
|
|
attributeFormDefault="unqualified" xml:lang="en-GB">
|
|
<xsd:annotation>
|
|
<xsd:documentation xml:lang="en">
|
|
Query Object Framework Serialization Format (QSF)
|
|
Copyright 2004-5 Neil Williams linux@codehelp.co.uk
|
|
QSF is part of QOF.
|
|
QOF is free software; you can redistribute it and/or modify it
|
|
under the terms of the GNU General Public License as published by the
|
|
Free Software Foundation; either version 2 of the License, or (at your
|
|
option) any later version.
|
|
This program is distributed in the hope that it will be useful, but
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
You should have received a copy of the GNU General Public License along
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:element name="qof-qsf" type="qof-qsf:qsftype"/>
|
|
<xsd:complexType name="qsftype">
|
|
<xsd:sequence>
|
|
<xsd:element name="book" type="qof-qsf:qofbook" minOccurs="1" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
<xsd:complexType name="qofbook">
|
|
<xsd:sequence>
|
|
<xsd:element name="book-guid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
|
|
<xsd:element name="object" type="qof-qsf:qsfobject" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
<xsd:attribute name="count" type="xsd:positiveInteger" use="optional"/>
|
|
</xsd:complexType>
|
|
<xsd:complexType name="qsfobject">
|
|
<xsd:sequence>
|
|
<xsd:element name="string" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="guid" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:hexBinary">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="boolean" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:boolean">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="numeric" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="date" minOccurs="0" maxOccurs="unbounded" >
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:dateTime">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="gint32" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:int">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="gint64" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:long">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="double" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:double">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="character" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="kvp" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
<xsd:attribute name="path" type="xsd:string" use="required"/>
|
|
<xsd:attribute name="value" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="collection" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:hexBinary">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="choice" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:hexBinary">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
<xsd:attribute name="name" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
<xsd:attribute name="count" type="xsd:positiveInteger" use="optional"/>
|
|
</xsd:complexType>
|
|
</xsd:schema>
|