Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Biblio.xsl

From ZeroWiki

<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0"

               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns="http://www.w3.org/TR/xhtml1/strict">
 <xsl:output method="html" indent="yes"/>
 <xsl:variable name="lang-title" select="'Literatur'"/>
 <xsl:template match="bibliography">
   <xsl:comment>
     XSL <xsl:value-of select="system-property('xsl:version')"/> /
     <xsl:value-of select="system-property('xsl:vendor')"/> 
     (<xsl:value-of select="system-property('xsl:vendor-url')"/>)
   </xsl:comment>

<a name="top"><xsl:value-of select="$lang-title"/> [<xsl:value-of select="count(book[not(@type='ref')])"/>]</a>

   <xsl:apply-templates select="topic">
     <xsl:sort select="."/>
   </xsl:apply-templates>
 </xsl:template>
 <xsl:template match="topic">
   <xsl:variable name="topic" select="@id"/>
   <a name="topic-{@id}">

<xsl:value-of select="."/> [<xsl:value-of select="count(../booknot(@type='ref') and @topic=$topic)"/>]

   </a>
   <xsl:apply-templates select="../booknot(@type='ref') and @topic=$topic">
     <xsl:sort select="@id"/>
   </xsl:apply-templates>
 </xsl:template>
 <xsl:template match="book">
     <xsl:value-of select="author"/>,
     "<xsl:value-of select="title"/>".
     <xsl:value-of select="publisher"/>,
     <xsl:value-of select="year"/>,
     <xsl:apply-templates select="comment"/>
     ISBN <a href="http://www.bookpool.com/.x//sm/{isbn}"><xsl:value-of select="isbn"/></a>.
 </xsl:template>
 <xsl:template match="comment">
   <xsl:value-of select="."/>,
 </xsl:template>

</xsl:stylesheet>