2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:pz="http://www.indexdata.com/pazpar2/1.0" >
4 <xsl:template match="/">
5 <xsl:apply-templates></xsl:apply-templates>
8 <xsl:template match="doc">
10 <xsl:apply-templates></xsl:apply-templates>
13 <xsl:template match="str[@name]">
15 <xsl:attribute name="type">
16 <xsl:value-of select="@name"/>
18 <xsl:value-of select="."/>
22 <xsl:template match="arr">
23 <xsl:for-each select="str">
24 <xsl:call-template name="string"/>
28 <xsl:template name="string">
30 <xsl:attribute name="type">
31 <xsl:value-of select="../@name"/>
33 <xsl:value-of select="."/>