summaryrefslogtreecommitdiff
path: root/bibtex.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'bibtex.xsl')
-rw-r--r--bibtex.xsl154
1 files changed, 154 insertions, 0 deletions
diff --git a/bibtex.xsl b/bibtex.xsl
new file mode 100644
index 0000000..0ddd2bd
--- /dev/null
+++ b/bibtex.xsl
@@ -0,0 +1,154 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:html="http://www.w3.org/1999/xhtml"
+ xmlns:h4sp="http://h4sp.planete-kraus.eu/ns/h4sp"
+ xmlns:b="http://h4sp.planete-kraus.eu/ns/bibliography">
+
+ <xsl:import href="latex/escape.xsl" />
+ <xsl:import href="latex/markup.xsl" />
+
+ <xsl:template match="m:bibliography">
+ <xsl:apply-templates />
+ </xsl:template>
+
+ <xsl:template match="b:inproceedings">
+ <xsl:text>@inproceedings{</xsl:text>
+ <xsl:value-of select="@id" />
+ <xsl:text></xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>&#xA;}&#xA;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:incollection">
+ <xsl:text>@incollection{</xsl:text>
+ <xsl:value-of select="@id" />
+ <xsl:text></xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>&#xA;}&#xA;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:article">
+ <xsl:text>@article{</xsl:text>
+ <xsl:value-of select="@id" />
+ <xsl:text></xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>&#xA;}&#xA;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:book">
+ <xsl:text>@book{</xsl:text>
+ <xsl:value-of select="@id" />
+ <xsl:text></xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>&#xA;}&#xA;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:techreport">
+ <xsl:text>@techreport{</xsl:text>
+ <xsl:value-of select="@id" />
+ <xsl:text></xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>&#xA;}&#xA;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:title">
+ <xsl:text>,&#xA; title = {</xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>}</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:author">
+ <xsl:text>,&#xA; author = {</xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>}</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:booktitle">
+ <xsl:text>,&#xA; booktitle = {</xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>}</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:pages">
+ <xsl:text>,&#xA; pages = {</xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>}</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:year">
+ <xsl:text>,&#xA; year = {</xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>}</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:journal">
+ <xsl:text>,&#xA; journal = {</xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>}</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:publisher">
+ <xsl:text>,&#xA; publisher = {</xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>}</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:editor">
+ <xsl:text>,&#xA; editor = {</xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>}</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="b:volume">
+ </xsl:template>
+
+ <xsl:template match="b:number">
+ </xsl:template>
+
+ <xsl:template match="b:isbn">
+ </xsl:template>
+
+ <xsl:template match="b:issn">
+ </xsl:template>
+
+ <xsl:template match="b:url">
+ </xsl:template>
+
+ <xsl:template match="b:urldate">
+ </xsl:template>
+
+ <xsl:template match="b:month">
+ </xsl:template>
+
+ <xsl:template match="b:doi">
+ </xsl:template>
+
+ <xsl:template match="b:organization">
+ </xsl:template>
+
+ <xsl:template match="b:address">
+ </xsl:template>
+
+ <xsl:template match="b:language">
+ </xsl:template>
+
+ <xsl:template match="b:abstract">
+ </xsl:template>
+
+ <xsl:template match="b:series">
+ </xsl:template>
+
+ <xsl:template match="b:keywords">
+ </xsl:template>
+
+ <xsl:template match="b:annote">
+ </xsl:template>
+
+ <xsl:template match="b:shorttitle">
+ </xsl:template>
+
+ <xsl:template match="b:note">
+ </xsl:template>
+</xsl:stylesheet>