File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libxml2 / test / schemas / decimal-1.xsd
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:37:59 2012 UTC (12 years, 8 months ago) by misho
Branches: libxml2, MAIN
CVS tags: v2_9_1p0, v2_9_1, v2_8_0p0, v2_8_0, v2_7_8, HEAD
libxml2

    1: <?xml version="1.0"?>
    2: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    3: 	
    4: 	<xsd:simpleType name="myDecimal">
    5: 		<xsd:restriction base="xsd:decimal">			
    6: 			<xsd:totalDigits value="18"/>			
    7: 		</xsd:restriction>
    8: 	</xsd:simpleType>
    9: 
   10: 	<xsd:element name="foo">
   11: 		<xsd:complexType>
   12: 			<xsd:sequence>
   13: 				<xsd:element name="val" type="myDecimal" maxOccurs="unbounded"/>
   14: 				<xsd:element name="ref" type="myDecimal" minOccurs="0"/>
   15: 			</xsd:sequence>
   16: 		</xsd:complexType>
   17: 
   18: 		<!--xsd:key name="myKey">
   19: 			<xsd:selector xpath="val"/>
   20: 			<xsd:field xpath="."/>
   21: 		</xsd:key>
   22: 
   23: 		<xsd:keyref name="myKeyRef" refer="myKey">
   24: 			<xsd:selector xpath="ref"/>
   25: 			<xsd:field xpath="."/>
   26: 		</xsd:keyref-->
   27: 	</xsd:element>
   28: 
   29: </xsd:schema>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>