1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="ISO-8859-1" indent="yes"/>
<xsl:template match="Formdata">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="_count_creator-multiple_creators"/>
<xsl:template match="cln|creator_first_name">
<p><b><xsl:value-of select="."/></b></p>
</xsl:template>
<xsl:template name="t_cln">
<xsl:param name="txt"/>
<xsl:choose>
<xsl:when test="contains($txt,'_')"><xsl:call-template name="t_cln"><xsl:with-param name="txt" select="substring-after($txt,'_')"/></xsl:call-template></xsl:when>
<xsl:when test="string-length($txt)=0">0</xsl:when>
<xsl:otherwise><xsl:value-of select="$txt"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="*[starts-with(name(),'cln_')]">
<p><xsl:value-of select="."/> #<xsl:call-template name="t_cln"><xsl:with-param name="txt" select="local-name()"/></xsl:call-template></p>
</xsl:template>
<xsl:template match="*[starts-with(name(),'creator_first_name_')]">
<p><xsl:value-of select="."/> - <xsl:value-of select="local-name()"/></p>
</xsl:template>
</xsl:stylesheet> |