|
Помогите со схемой xsd
|
|||
---|---|---|---|
#18+
Хочу чтобы был атрибут у last_name, но не пойму как в схему прописать чтобы и атрибут был и текст у элемента last_name. Сейчас если <last_name id="2"></last_name>, то все ок, а если <last_name id="2">2</last_name>, то не проходит валидации. Как быть? Код: plaintext 1. 2. 3. 4. 5.
Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.
... |
|||
:
Нравится:
Не нравится:
|
|||
01.12.2009, 23:09 |
|
Помогите со схемой xsd
|
|||
---|---|---|---|
#18+
вот что предлагает альтова <?xml version="1.0" encoding="UTF-8"?> <!--W3C Schema generated by XMLSpy v2008 (http://www.altova.com)--> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="person"> <xs:complexType> <xs:sequence> <xs:element name="last_name"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:byte"> <xs:attribute name="id" type="xs:byte" use="required"/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> ... |
|||
:
Нравится:
Не нравится:
|
|||
02.12.2009, 09:20 |
|
|
start [/forum/topic.php?fid=14&msg=36343062&tid=1333380]: |
0ms |
get settings: |
10ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
33ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
33ms |
get tp. blocked users: |
1ms |
others: | 12ms |
total: | 124ms |
0 / 0 |