6
|
1 <?xml version="1.0" encoding="UTF-8" ?>
|
|
2
|
|
3 <!--
|
|
4 Document : copy.xsl
|
|
5 Created on : May 22, 2007, 2:36 PM
|
|
6 Author : Ellen Kraffmiller
|
|
7 Description:
|
|
8 Purpose of transformation follows.
|
|
9 -->
|
|
10
|
|
11 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:oai="http://www.openarchives.org/OAI/2.0/" >
|
|
12
|
|
13
|
|
14 <!-- TODO customize transformation rules
|
|
15 syntax recommendation http://www.w3.org/TR/xslt
|
|
16 -->
|
|
17
|
|
18
|
|
19
|
|
20 <xsl:template match="/">
|
|
21 <xsl:apply-templates select="oai:OAI-PMH/oai:GetRecord/oai:record/oai:header"/>
|
|
22 </xsl:template>
|
|
23
|
|
24 <xsl:template match="oai:OAI-PMH/oai:GetRecord/oai:record/oai:header">
|
|
25 <header>
|
|
26 <xsl:apply-templates select="@* | node()"/>
|
|
27 </header>
|
|
28 </xsl:template>
|
|
29
|
|
30 <xsl:template match="@* | node()">
|
|
31 <xsl:copy>
|
|
32 <xsl:apply-templates select="@* | node()"/>
|
|
33 </xsl:copy>
|
|
34 </xsl:template>
|
|
35
|
|
36
|
|
37 </xsl:stylesheet>
|