|
Помогите подружить enumeration и complexType
|
|||
---|---|---|---|
#18+
Есть такая схема <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:trt="http://www.company.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.company.com/"> <xsd:simpleType name="ResultCode"> <xsd:restriction base="xsd:integer"> <xsd:minExclusive value="2" /> <xsd:maxExclusive value="250" /> </xsd:restriction> </xsd:simpleType> <xsd:complexType name="Result"> <xsd:sequence> <xsd:element name="Code" type="trt:ResultCode" minOccurs="1" maxOccurs="1"> </xsd:element> <xsd:element name="Description" type="xsd:string" minOccurs="0" maxOccurs="1"> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:schema> Как ограничить СПИСОК возможных значений Result? Что бы было типа (понятно, что не так) <xsd:restriction base="trt:Result"> <xsd:enumeration><Code>1</Code><Description>Some text<Description/></xsd:enumeration> <xsd:enumeration><Code>2</Code><Description>Some other text<Description/></xsd:enumeration> </xsd:restriction> Есть ли вообще возможность описать список сложных значений? ... |
|||
:
Нравится:
Не нравится:
|
|||
17.09.2008, 17:17 |
|
|
start [/forum/topic.php?fid=14&fpage=49&tid=1333781]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
29ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
38ms |
get tp. blocked users: |
1ms |
others: | 13ms |
total: | 124ms |
0 / 0 |