music - <xsd:element name="artist"...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
<?xml version="1.0" encoding="UTF-8"?> <!-- New Perspectives on XML Tutorial 4 Case Problem 1 Jazz Warehouse Vintage Albums Schema Author: Date: Filename: music.xsd Supporting Files: --> - <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> < <xsd:simpleType name="albumIDType"> <xsd:restriction base="xsd:ID"> <xsd:pattern value="JW\d{6}" /> </xsd:restriction> </xsd:simpleType> < <xsd:simpleType name="jazzType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="New Orleans" /> <xsd:enumeration value="Swing" /> <xsd:enumeration value="Bebop" /> <xsd:enumeration value="Modern" /> </xsd:restriction> </xsd:simpleType> < <xsd:element name="inventory"> <xsd:complexType> <xsd:sequence> <xsd:element name="album" minOccurs="1" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="title" type="xsd:string" />
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: <xsd:element name="artist" type="xsd:string" minOccurs="1" maxOccurs="unbounded"/> <xsd:element name="tracks"> <xsd:complexType> <xsd:sequence> <xsd:element name="track" minOccurs="1" maxOccurs="unbounded"> <xsd:complexType> <xsd:simpleContent> <xsd:extension base="xsd:string"> <xsd:attribute name="length" type="xsd:time" default="optional" /> </xsd:extension> </xsd:simpleContent> </xsd:complexType> </xsd:element> </xsd:sequence> <xsd:attribute name="length" type="xsd:time" default="optional" /> </xsd:complexType> </xsd:element> </xsd:sequence> <xsd:attribute name="category" type="jazzType" use="required" /> <xsd:attribute name="albumID" type="albumIDType" use="required" /> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema>...
View Full Document

This note was uploaded on 03/26/2010 for the course CS 178 taught by Professor Mandyam during the Spring '10 term at Ohlone.

Page1 / 2

music - <xsd:element name="artist"...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online