]> granicus.if.org Git - docbook-dsssl/commitdiff
Used copy-of instead of value-of with biblioentry.item.separator,
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 4 Aug 2006 10:20:28 +0000 (10:20 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 4 Aug 2006 10:20:28 +0000 (10:20 +0000)
so that it can contain linebreaks. Closes bug 1509021. Patch from
Daniel Leidert.

xsl/html/biblio.xsl

index 92f80371a2a605e8acf28b772a378e990d954d58..67af521deccd30edab94b39070ad9f5bfdd0f451 100644 (file)
 <xsl:template match="address" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="affiliation" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="shortaffil" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="jobtitle" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="artheader|articleinfo|info" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="artpagenums" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="author" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:call-template name="person.name"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="authorgroup" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:call-template name="person.name.list"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="authorinitials" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="bibliomisc" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="bibliomset" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
       <i><xsl:apply-templates/></i>
     </xsl:otherwise>
   </xsl:choose>
-  <xsl:value-of select="$biblioentry.item.separator"/>
+  <xsl:copy-of select="$biblioentry.item.separator"/>
 </xsl:template>
 
 <!-- ================================================== -->
 <xsl:template match="bookbiblio" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
         <xsl:call-template name="inline.italicseq"/>
       </xsl:otherwise>
     </xsl:choose>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="collab" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="collabname" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="confgroup" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="confdates" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="conftitle" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="confnum" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="confsponsor" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="contractnum" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="contractsponsor" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="contrib" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
       <xsl:call-template name="gentext.space"/>
       <xsl:apply-templates select="holder" mode="bibliography.mode"/>
     </xsl:if>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="corpauthor" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="corpcredit" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="corpname" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="date" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="edition" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="editor" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:call-template name="person.name"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="firstname" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="honorific" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="indexterm" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="invpartnumber" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="isbn" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="issn" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="issuenum" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="lineage" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="orgname" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="orgdiv" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="othercredit" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="othername" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="pagenums" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="productname" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="productnumber" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="pubdate" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="publishername" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="pubsnumber" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="releaseinfo" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="seriesvolnums" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="subtitle" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="surname" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="title" mode="bibliography.mode">
   <span class="{name(.)}">
     <i><xsl:apply-templates mode="bibliography.mode"/></i>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="titleabbrev" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="volumenum" mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
               mode="bibliography.mode">
   <span class="{name(.)}">
     <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
+    <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>