1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:z="http://indexdata.dk/zebra/xslt/1"
4 xmlns:e="http://explain.z3950.org/dtd/2.0/"
7 <xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
8 <!-- Disable all default text node output -->
9 <xsl:template match="text()"/>
10 <!-- Match on ZeeRex XML record -->
12 <xsl:template match="//e:explain">
13 <metadata xmlns:dc="http://purl.org/dc/elements/1.1/"
14 z:id="{concat(e:serverInfo/@protocol, ':',
15 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"/>