From: Alexey L. <lou...@us...> - 2004-08-31 15:58:33
|
User: loubyansky Date: 04/08/31 08:58:10 Added: src/resources/xml/book book-dtd.xml book-xs.xml books.dtd books.xsd Log: xml, dtd, xsd resources for xml binding tests Revision Changes Path 1.1 jbosstest/src/resources/xml/book/book-dtd.xml Index: book-dtd.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE book PUBLIC "-//DTD Books//EN" "resources/xml/book/books.dtd"> <book isbn="0836217462"> <title>Being a Dog Is a Full-Time Job</title> <author>Charles M. Schulz</author> <character> <name>Snoopy</name> <friend-of>Peppermint Patty</friend-of> <since>1950-10-04</since> <qualification>extroverted beagle</qualification> </character> <character> <name>Peppermint Patty</name> <since>1966-08-22</since> <qualification>bold, brash and tomboyish</qualification> </character> </book> 1.1 jbosstest/src/resources/xml/book/book-xs.xml Index: book-xs.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <book isbn="0836217462" xmlns="http://example.org/ns/books/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://example.org/ns/books/ resources/xml/book/books.xsd"> <title>Being a Dog Is a Full-Time Job</title> <author>Charles M. Schulz</author> <character> <name>Snoopy</name> <friend-of>Peppermint Patty</friend-of> <since>1950-10-04</since> <qualification>extroverted beagle</qualification> </character> <character> <name>Peppermint Patty</name> <since>1966-08-22</since> <qualification>bold, brash and tomboyish</qualification> </character> </book> 1.1 jbosstest/src/resources/xml/book/books.dtd Index: books.dtd =================================================================== <?xml version='1.0' encoding='UTF-8'?> <!ELEMENT book (title, author, character*)> <!ATTLIST book isbn CDATA #REQUIRED> <!ELEMENT title (#PCDATA)> <!ELEMENT author (#PCDATA)> <!ELEMENT character (name, friend-of?, since?, qualification?)> <!ELEMENT name (#PCDATA)> <!ELEMENT friend-of (#PCDATA)> <!ELEMENT since (#PCDATA)> <!ELEMENT qualification (#PCDATA)> 1.1 jbosstest/src/resources/xml/book/books.xsd Index: books.xsd =================================================================== <?xml version="1.0" encoding="utf-8"?> <xsd:schema targetNamespace="http://example.org/ns/books/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bk="http://example.org/ns/books/" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xsd:element name="book"> <xsd:complexType> <xsd:sequence> <xsd:element name="title" type="xsd:string"/> <xsd:element name="author" type="xsd:string"/> <xsd:element name="character" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="name" type="xsd:string"/> <xsd:element name="friend-of" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="since" type="xsd:date"/> <xsd:element name="qualification" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> <xsd:attribute name="isbn" type="xsd:string"/> </xsd:complexType> </xsd:element> </xsd:schema> |