Changeset 73


Ignore:
Timestamp:
05/16/08 17:36:51 (16 years ago)
Author:
pinsard
Message:

add book, manual biblioset on bibtex side

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bibtexml2dbk.xsl

    r71 r73  
    1313update : 
    1414$Id$ 
     15fplod 2008-05-16T14:49:33Z aedon.locean-ipsl.upmc.fr (Darwin) 
     16add bibtex:book, bibtex:manual and bibtex:misc : biblioset 
    1517fplod 2008-05-16T14:32:48Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1618bug fix on bibioset 
     
    5860<xsl:element name="biblioentry"> 
    5961 <xsl:attribute name="xml:id"><xsl:value-of select="@id"/></xsl:attribute> 
     62<!--++ key as info element--> 
    6063 <xsl:apply-templates select="bibtex:article"/> 
    61 <!--++ key--> 
     64 <xsl:apply-templates select="bibtex:book"/> 
     65 <xsl:apply-templates select="bibtex:manual"/> 
     66 <xsl:apply-templates select="bibtex:misc"/> 
    6267</xsl:element> 
    6368</xsl:template> 
     
    111116</xsl:template> 
    112117 
     118<xsl:template match="bibtex:book"> 
     119 <xsl:apply-templates select="bibtex:title"/> 
     120 <xsl:apply-templates select="bibtex:author"/> 
     121 <xsl:apply-templates select="bibtex:isbn"/> 
     122 <xsl:element name="biblioset"> 
     123 <!-- ++ book relation is not yet implented in DocBook processing --> 
     124  <xsl:attribute name="relation"><xsl:value-of select="'book'"/></xsl:attribute> 
     125  <xsl:apply-templates select="bibtex:publisher"/> 
     126  <xsl:apply-templates select="bibtex:edition"/> 
     127  <xsl:apply-templates select="bibtex:volume"/> 
     128  <xsl:apply-templates select="bibtex:pages"/> 
     129  <xsl:apply-templates select="bibtex:year"/> 
     130 </xsl:element> 
     131</xsl:template> 
     132 
     133<xsl:template match="bibtex:manual"> 
     134 <xsl:apply-templates select="bibtex:title"/> 
     135 <xsl:apply-templates select="bibtex:author"/> 
     136 <xsl:element name="biblioset"> 
     137 <!-- ++ manual  relation is not yet implented in DocBook processing --> 
     138  <xsl:attribute name="relation"><xsl:value-of select="'manual'"/></xsl:attribute> 
     139  <xsl:apply-templates select="bibtex:year"/> 
     140  <xsl:apply-templates select="bibtex:publisher"/> 
     141  <xsl:apply-templates select="bibtex:organization"/> 
     142 </xsl:element> 
     143 <xsl:apply-templates select="bibtex:url"/> 
     144</xsl:template> 
     145 
     146<xsl:template match="bibtex:misc"> 
     147 <xsl:apply-templates select="bibtex:title"/> 
     148 <xsl:apply-templates select="bibtex:author"/> 
     149 <xsl:element name="biblioset"> 
     150 <!-- can't know precise relation. set to journal--> 
     151  <xsl:attribute name="relation"><xsl:value-of select="'journal'"/></xsl:attribute> 
     152  <xsl:apply-templates select="bibtex:year"/> 
     153 </xsl:element> 
     154 <xsl:apply-templates select="bibtex:url"/> 
     155</xsl:template> 
     156 
     157 
    113158<xsl:template match="bibtex:publisher|bibtex:organization"> 
    114159<xsl:element name="publisher"> 
     
    192237<xsl:template match="bibtex:url"> 
    193238<xsl:element name="biblioid"> 
    194  <xsl:attribute name="uri"><xsl:value-of select="."/></xsl:attribute> 
     239 <xsl:attribute name="class"><xsl:value-of select="'uri'"/></xsl:attribute> 
    195240 <xsl:value-of select="."/> 
    196241</xsl:element> 
Note: See TracChangeset for help on using the changeset viewer.