]> granicus.if.org Git - docbook-dsssl/commitdiff
Added code for creating URLs from biblioids with @class="doi" (representing Digital
authorMauritz Jeanson <mj@johanneberg.com>
Mon, 14 Apr 2008 17:05:16 +0000 (17:05 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Mon, 14 Apr 2008 17:05:16 +0000 (17:05 +0000)
Object Identifiers). See FR #1934434 and http://doi.org.

To do: 1) Add support for FO output. 2) Figure out how @class="doi" should be handled
for bibliorelation, bibliosource and citebiblioid.

xsl/html/biblio.xsl

index 428fafb7edfa59739698782bd94954e4d547563f..9169708916a3cabf9fefb5a7de8c7f0664840032 100644 (file)
   </span>
 </xsl:template>
 
+<!-- See FR #1934434 and http://doi.org -->
+<xsl:template match="biblioid[@class='doi']"
+              mode="bibliography.mode">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
+    <a href="{concat('http://dx.doi.org/', .)}">doi:<xsl:value-of select="."/></a>
+  </span>
+</xsl:template>
+
 <!-- ==================================================================== -->
 
 <xsl:template match="*" mode="bibliomixed.mode">
   </span>
 </xsl:template>
 
+<!-- See FR #1934434 and http://doi.org -->
+<xsl:template match="biblioid[@class='doi']"
+              mode="bibliomixed.mode">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
+    <a href="{concat('http://dx.doi.org/', .)}">doi:<xsl:value-of select="."/></a>
+  </span>
+</xsl:template>
+
 <!-- ==================================================================== -->
 
 </xsl:stylesheet>