Skip to content

Commit

Permalink
restrict scope of bibtex templates
Browse files Browse the repository at this point in the history
  • Loading branch information
mkraetke committed Feb 14, 2024
1 parent e06ea65 commit ea2c5b4
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions conf/conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1252,39 +1252,40 @@
</xsl:if>
</template>

<template context="dbk:personname"><!-- for above bibtex generating template -->
<template context="dbk:biblioentry//dbk:personname">
<xsl:value-of select="string-join((dbk:firstname, dbk:othername[starts-with(@role, 'middle')], dbk:surname), ' ')"/>
</template>

<template context="dbk:author|dbk:editor"><!-- probably for authors in the article header? -->
<template context="dbk:biblioentry//dbk:author
|dbk:biblioentry//dbk:editor">
<xsl:value-of select="concat(dbk:personname/dbk:firstname, ' ', dbk:personname/dbk:surname)"/>
</template>

<template context="dbk:pubdate">
<template context="dbk:biblioentry//dbk:pubdate">
<xsl:value-of select="concat('date={', ., '},&#xa;')"/>
</template>

<template context="dbk:publisher">
<template context="dbk:biblioentry//dbk:publisher">
<xsl:value-of select="concat('publisher={', dbk:publishername[1], '},&#xa;')"/>
</template>

<template context="dbk:pagenums">
<template context="dbk:biblioentry//dbk:pagenums">
<xsl:value-of select="concat('pages={', ., '},&#xa;')"/>
</template>

<template context="dbk:volumenum">
<template context="dbk:biblioentry//dbk:volumenum">
<xsl:value-of select="concat('number={', ., '},&#xa;')"/>
</template>

<template context="dbk:biblioset[not(following-sibling::dbk:biblioset[@relation = 'inproceedings'])]/dbk:title">
<template context="dbk:biblioentry//dbk:biblioset[not(following-sibling::dbk:biblioset[@relation = 'inproceedings'])]/dbk:title">
<xsl:value-of select="concat('title={', ., '},&#xa;')"/>
</template>

<template context="dbk:biblioset[following-sibling::dbk:biblioset[@relation = 'inproceedings']]/dbk:title">
<template context="dbk:biblioentry/dbk:biblioset[following-sibling::dbk:biblioset[@relation = 'inproceedings']]/dbk:title">
<xsl:value-of select="concat('booktitle={', ., '},&#xa;')"/>
</template>

<template context="dbk:biblioid">
<template context="dbk:biblioentry//dbk:biblioid">
<xsl:value-of select="concat(@class, '={', ., '},&#xa;')"/>
</template>

Expand Down

0 comments on commit ea2c5b4

Please sign in to comment.