XML Schema - Assignment 3

Assignment 3

This is a link to the XMLpage using the schema. The schema is also available at diglib.xsd
Code for the schema and XML are pasted in below.

Schema

<?xml version ="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="resources">
<xsd:complexType>
<xsd:sequence maxOccurs="unbounded">
<xsd:element name="collection" type="collectionType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="collectionType">
<xsd:sequence>
<xsd:element ref="name"/>
<xsd:element ref="sponsor" minOccurs="0" maxOccurs="4"/>
<xsd:element ref="description"/>
<xsd:element ref="comments"/>
<xsd:element ref="reviewdate"/>
<xsd:element ref="location"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="sponsor" type="xsd:string"/>
<xsd:element name="description" type="xsd:string"/>
<xsd:element name="comments" type="xsd:string"/>
<xsd:element name="reviewdate" type="xsd:date"/>
<xsd:element name="location" type="xsd:anyURI"/>
</xsd:schema>

 

 

XML Digital Library

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="resstyle1.css"?>
<resources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="diglib.xsd">
<collection>
<name>American Memory</name>
<sponsor>Library of Congress</sponsor>
<description>American history and culture, broad coverage from architecture to sports and technology. Includes digitized historical documents, photographs, sound recordings, moving pictures, books, pamphlets, and maps.</description>
<comments>Browse collections by topic.</comments>
<reviewdate>2005-10-10</reviewdate>
<location>http://memory.loc.gov/ammem/</location>
</collection>
<collection>
<name>NYPL Digital Gallery</name>
<sponsor>New York Public Library</sponsor>
<description>Another broad collection including materials in the areas Arts and Literature, Cities and Buildings, Science and Technology and far more. Photographs, prints and historical documents.</description>
<comments>Collection guides available. Love the New York City photos.</comments>
<reviewdate>2005-12-05</reviewdate>
<location>http://digitalgallery.nypl.org/nypldigital/</location>
</collection>
<collection>
<name>Digital Library for the Decorative Arts and Material Culture</name>
<sponsor>University of Wisconsin-Madison</sponsor>
<description>Electronic resources for study and research in the decorative arts, with focus on early America.</description>
<comments>Useful links to resources and guides.See the tea pots!</comments>
<reviewdate>2005-11-05</reviewdate>
<location>http://digital.library.wisc.edu/1711.dl/DLDecArts</location>
</collection>
<collection>
<name>ARTstor Digital Library</name>
<sponsor>The Andrew W. Mellon Foundation</sponsor>
<description>Images covering art, architecture and archeology.</description>
<comments>Images are available for educational and scholarly use (noncommercial). Visual sister of JSTOR. </comments>
<reviewdate>2006-02-06</reviewdate>
<location>http://www.artstor.org/info/</location>
</collection>
<collection>
<name>International Children's Digital Library</name>
<sponsor>University of Maryland</sponsor>
<sponsor>National Science Foundation (NSF)</sponsor>
<sponsor>Institute for Museum and Library Services (IMLS)</sponsor>
<description>A digital collection of children's books. Contains 904 books in 34 different languages.</description>
<comments>Designed for children 3-13 years old.</comments>
<reviewdate>2005-03-01</reviewdate>
<location>http://www.icdlbooks.org/</location>
</collection>
</resources>

 

This page updated February 28, 2006.