You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by ia...@apache.org on 2003/11/14 18:36:05 UTC
cvs commit: ws-jaxme/src/test/jaxb defaults.xsd
ias 2003/11/14 09:36:05
Added: src/test/jaxb defaults.xsd
Log:
initial check-in: sample schema for testing default values.
Revision Changes Path
1.1 ws-jaxme/src/test/jaxb/defaults.xsd
Index: defaults.xsd
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xml:lang="EN"
targetNamespace="http://ws.apache.org/jaxme/test/misc/defaults"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation>
This schema is soley designed to test default values in elements.
</xs:documentation>
</xs:annotation>
<xs:element name="Persons">
<xs:complexType>
<xs:sequence>
<xs:element name="Person" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="First" type="xs:string" default="Anonymous" minOccurs="0"/>
<xs:element name="Last" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Age" type="xs:int" default="25" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="Alias" type="xs:string" default="Ias"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org