First of all, let me apologize for the length of the message, but it?s the
only way I came up with since attachments aren?t allowed in this list.
I?ve been working on a XSL document in order to perform a transformation
from an OAI-PMH generated XML output, which comes in a Dublin Core element
set format, to HTML.
I?m having trouble filtering some of the elements that I want to be hidden
in the resulting HTML. Here?s an example of a resulting XML document:
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="example.xsl"?> <OAI-PMH
xmlns="http://www.openarchives.org/OAI/2.0/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
<responseDate>2004-11-15T13:21:38Z</responseDate>
<request verb="ListRecords"
metadataPrefix="oai_dc">http://resgenchem15.chem.wisc.edu/spt/SPT--OAI.php</
request>
<ListRecords>
<record>
<header>
<identifier>oai:jce.divched.org:jcedlib-58</identifier>
<datestamp>2003-06-03</datestamp>
</header>
<metadata>
<oai_dc:dc
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/
http://www.openarchives.org/OAI/2.0/oai_dc.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title>Journal of Chemical Education Digital
Library</dc:title>
<dc:creator>John W. Moore</dc:creator>
<dc:description>The JCE Digital Library (JCE DLib) was
established in 2003 as a result of an NSF grant. It is a part of the NSDL,
and initially includes four features: WebWare, DigiDemos, QBank, and
SymMath.</dc:description>
<dc:publisher>The Division of Chemical Education, Inc.,
of the American Chemical Society</dc:publisher>
<dc:date>2003-01-01</dc:date>
<dc:type>Collection</dc:type>
<dc:format>text/html</dc:format>
<dc:identifier>http://jce.divched.org/JCEDLib/</dc:identifier>
<dc:language>en</dc:language>
<dc:relation> isPartOf: ISSN:0021-9584</dc:relation>
<dc:rights>Copyright 2003 by the Division of Chemical
Education, Inc., American Chemical Society.</dc:rights>
<dc:subject>Elementary / Middle School</dc:subject>
</oai_dc:dc>
</metadata>
</record>
<resumptionToken>-_--_-oai_dc-_--_-20</resumptionToken>
</ListRecords>
</OAI-PMH>
So far, I?ve managed to match all the elements belonging to the ?dc?
namespace, but when I try to match elements such as <request>, <identifier>
of <datestamp> it doesn?t seem to work. Here?s an example of how I?m trying
to match the elements:
<xsl:template match="dc:language"/> WORKS
<xsl:template match="datestamp"/> FAILS
I?ve tried several solutions for the matching with the same result. Can
anyone tell me how can I get it to work?
Thanks in advance,
Rolando
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--