blob: a98b82a98b615103ae0ec8bea4a11cb719bbaf9a [file] [log] [blame]
Daniel Veillardc0826a72004-08-10 14:17:33 +00001<?xml version="1.0"?>
2<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3 attributeFormDefault="qualified"
4 xmlns:foo="http://FOO"
5 targetNamespace="http://FOO">
6
7 <xsd:attribute name="id" type="xsd:ID"/>
8
9 <xsd:complexType name="typeIDAttr">
10 <xsd:attribute ref="foo:id"/>
11 </xsd:complexType>
12
13 <xsd:simpleType name="fooID">
14 <xsd:restriction base="xsd:ID">
15 <xsd:pattern value="b\d{10}"/>
16 </xsd:restriction>
17 </xsd:simpleType>
18
19 <xsd:element name="foo">
20 <xsd:complexType>
21 <xsd:complexContent>
22 <xsd:restriction base="foo:typeIDAttr">
23 <xsd:attribute name="id" type="foo:fooID"/>
24 </xsd:restriction>
25 </xsd:complexContent>
26 </xsd:complexType>
27 </xsd:element>
28
29
30</xsd:schema>