DTD Practice - Assignment 2

Assignment 2 links to XML pages containing information about several Digital Libraries. Both pages share the same XML coding, CSS style sheet, data and DTD. For one page (resources.xml) the DTD is internal to the XML page. For the other (resourcesext.xml) the the DTD is external. Validated using the XML Validation Form from Scholarly Technology Group at http://www.stg.brown.edu/service/xmlvalid/

 

If you like to click:

If you prefer to scroll:

The DTD


<!ELEMENT resources (collection)*>
<!ELEMENT collection (name, sponsor*, description, comments?, reviewdate, location)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT sponsor (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT comments (#PCDATA)>
<!ELEMENT reviewdate (#PCDATA)>
<!ELEMENT location (#PCDATA)>

 

The XML

 

<resources>
<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>October 10, 2005</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>December 5, 2005</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>November 15, 2005</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>February 6, 2006</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>March 1, 2005</reviewdate>
<location>http://www.icdlbooks.org/</location>
</collection>
</resources>

 

The CSS

 

/* CSS Document */
resources:before{
content: "A Random Collection of Digital Libraries";
display:block;
font-size:1.2em;
color:#003366;
}
resources{
display:block;
font-family: arial, sans-serif;
font-size: 90%;
color:#003366;
background-color:#FFFFFF;
margin: 10px 30% 10px 10%;
padding: 5px 5px 10px 5px;
border:solid 4px #006699;
}
collection{
display:block;
}
name{
display:block;
font-size:1em;
font-weight:bold;
color:#003333;
border-top: solid 2px #333399;
margin: 8px 5px 5px 5px;
padding:10px 5px 5px 5px;
}
sponsor {
display:block;
font-size:.9em;
margin-left:15px;
margin-bottom: 3px;
}
description {
display:block;
font-size:.9em;
margin: 2px 15px 2px 15px;
text-align:justify;
color:#003399;
}
comments:before{
content:"Comments: ";
color:#000066;
font-style:italic;
}
comments{
display:block;
font-size:.9em;
color:#003300;
margin: 5px 5px 5px 6px;
padding: 5px 5px 5px 6px;
border-top:solid 1px #669933;
}
reviewdate{
display:block;
font-size:.9em;
color:#006600;
margin-bottom: 10px;
padding-bottom: 10px;
float:right;
clear:both;
}
location{
display:block;
font-size:.9em;
margin-left:10px;
padding:5px;
}

 

 

This page updated February 16, 2006.