1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- $Id: zeerex2noauth.xsl,v 1.1 2007-05-11 08:29:24 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/@protocol, ':',
16 e:serverInfo/e:host, ':',
17 e:serverInfo/e:port, '/',
18 e:serverInfo/e:database)}">
20 <xsl:value-of select="e:databaseInfo/e:title"/>
23 <xsl:value-of select="e:databaseInfo/e:author"/>
27 <xsl:value-of select="e:databaseInfo/e:description"/>
32 <xsl:value-of select="e:serverInfo/e:database/@lastUpdate"/>
34 <dc:type>Service</dc:type>
37 <xsl:value-of select="concat(
38 e:serverInfo/e:host, ':',
39 e:serverInfo/e:port, '/',
40 e:serverInfo/e:database)"/>
44 <xsl:value-of select="e:databaseInfo/e:langUsage"/>