1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- $Id: zeerex2dc.xsl,v 1.1 2006-09-26 14:37:41 mike Exp $ -->
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:z="http://indexdata.dk/zebra/xslt/1"
5 xmlns:e="http://explain.z3950.org/dtd/2.0/"
8 <xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
9 <!-- Disable all default text node output -->
10 <xsl:template match="text()"/>
11 <!-- Match on ZeeRex XML record -->
13 <xsl:template match="//e:explain">
14 <metadata xmlns:dc="http://purl.org/dc/elements/1.1/"
15 z:id="{concat(e:serverInfo/e:host, ':',
16 e:serverInfo/e:port, '/',
17 e:serverInfo/e:database)}">
19 <xsl:value-of select="e:databaseInfo/e:title"/>
22 <xsl:value-of select="e:databaseInfo/e:author"/>
26 <xsl:value-of select="e:databaseInfo/e:description"/>
31 <xsl:value-of select="e:serverInfo/e:database/@lastUpdate"/>
33 <dc:type>Service</dc:type>
36 <xsl:value-of select="concat(
37 e:serverInfo/e:host, ':',
38 e:serverInfo/e:port, '/',
39 e:serverInfo/e:database)"/>
43 <xsl:value-of select="e:databaseInfo/e:langUsage"/>