[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Dividing a long document into seperate documents


Subject: [xsl] Dividing a long document into seperate documents
From: "Choi Ryan" <yutaka234@xxxxxxxxxxx>
Date: Tue, 15 Aug 2006 06:09:39 +0900

Hi All,

Sorry for a long posting. Actually, I transformed OAI Harvesting documents from XSLT. But, OAI XML Document has multiple bindings as below..

<uiuc>
<metadata>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
<dc:title>Oldtown Folks</dc:title>
<dc:creator>Stowe, Harriet Beecher, 1811-1896</dc:creator>
<dc:subject>New England -- Social life and customs -- Fiction.</dc:subject>
<dc:subject>Women -- New England -- Fiction.</dc:subject>
<dc:subject>PS2954 .O4</dc:subject>
<dc:identifier>http://digital.library.upenn.edu/women/stowe/folks/folks.html</dc:identifier>


<dc:format>text/html</dc:format>
<dc:description>Boston: Fields, Osgood, and Co., 1869</dc:description>
<dc:publisher>Fields, Osgood, and Co.</dc:publisher>
<dc:date>1869</dc:date>
<dc:publisher>A Celebration of Women Writers</dc:publisher>
<dc:date>2001-01-11</dc:date><dc:type>Text</dc:type>
</oai_dc:dc>
</metadata>
<metadata>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
<dc:title>An Island Garden</dc:title>
<dc:creator>Thaxter, Celia, 1835-1894</dc:creator>
<dc:creator>Hassam, Childe</dc:creator>
<dc:subject>Celia Thaxter's Garden (Appledore Island, Me.).</dc:subject>
<dc:subject>Thaxter, Celia, 1835-1894.</dc:subject>
<dc:subject>Gardens -- Maine -- Appledore Island.</dc:subject>
<dc:subject>Appledore Island (Me.) -- Description and travel.</dc:subject>
<dc:subject>SB466 .U6 T5</dc:subject>
<dc:identifier>http://digital.library.upenn.edu/women/thaxter/garden/garden.html</dc:identifier>


<dc:format>text/html</dc:format>
<dc:publisher>A Celebration of Women Writers</dc:publisher>
<dc:date>2001-07-13</dc:date><dc:type>Text</dc:type>
</oai_dc:dc>
</metadata><metadata>...</metadata><metadata>...</metadata>..</uiuc>

So, my transformation also has multiple buildings as below. However, actually, each rdf binding is seperate record. However, I do not have any idea how to handle seperating this into seperate records. Could you give me a tip or help?

<rdf:RDF xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<rdf:Description rdf:about="http://digital.library.upenn.edu/women/stowe/folks/folks.html">
<rdf:type rdf:resource="http://purl.org/gem/qualifiers/GEM2"/>
<dc:identifier rdf:resource="http://digital.library.upenn.edu/women/stowe/folks/folks.html"/>


<dc:title>Oldtown Folks</dc:title>
<dc:creator>Stowe, Harriet Beecher, 1811-1896</dc:creator>
<dc:subject>New England -- Social life and customs -- Fiction.</dc:subject>
<dc:subject>Women -- New England -- Fiction.</dc:subject>
<dc:subject>PS2954 .O4</dc:subject>
<dc:format>text/html</dc:format>
<dc:description>Boston: Fields, Osgood, and Co., 1869</dc:description>
<dc:publisher>Fields, Osgood, and Co.</dc:publisher>
<dc:publisher>A Celebration of Women Writers</dc:publisher>
<dc:date>1869</dc:date>
<dc:date>2001-01-11</dc:date>
<dc:type>Text</dc:type>
</rdf:Description>
</rdf:RDF>
<rdf:RDF xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<rdf:Description rdf:about="http://digital.library.upenn.edu/women/thaxter/garden/garden.html">


<rdf:type rdf:resource="http://purl.org/gem/qualifiers/GEM2"/>
<dc:identifier rdf:resource="http://digital.library.upenn.edu/women/thaxter/garden/garden.html"/>


<dc:title>An Island Garden</dc:title>
<dc:creator>Thaxter, Celia, 1835-1894</dc:creator>
<dc:creator>Hassam, Childe</dc:creator>
<dc:subject>Celia Thaxter's Garden (Appledore Island, Me.).</dc:subject>
<dc:subject>Thaxter, Celia, 1835-1894.</dc:subject>
<dc:subject>Gardens -- Maine -- Appledore Island.</dc:subject>
<dc:subject>Appledore Island (Me.) -- Description and travel.</dc:subject>
<dc:subject>SB466 .U6 T5</dc:subject>
<dc:format>text/html</dc:format>
<dc:publisher>A Celebration of Women Writers</dc:publisher>
<dc:date>2001-07-13</dc:date>
<dc:type>Text</dc:type>
</rdf:Description>
</rdf:RDF>
<rdf:RDF>...</rdf:RDF><rdf:RDF>...</rdf:RDF><rdf:RDF>...</rdf:RDF>


Thanks a lot,

Cheers,
Ryan

_________________________________________________________________
C%;s@'?! 4Y8. ?C8.0m 4@1_GO0T Aq1d4Y... MSN ?B6s@N ;s?50| http://vod.msn.co.kr



Current Thread
Keywords
xml