]> granicus.if.org Git - docbook-dsssl/commitdiff
Convert all class attributes to use the class.attribute mode
authorBob Stayton <bobs@sagehill.net>
Sat, 18 Nov 2006 09:00:48 +0000 (09:00 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 18 Nov 2006 09:00:48 +0000 (09:00 +0000)
so class names can be customized more easily.

22 files changed:
xsl/html/admon.xsl
xsl/html/biblio.xsl
xsl/html/block.xsl
xsl/html/callout.xsl
xsl/html/chunk-code.xsl
xsl/html/component.xsl
xsl/html/division.xsl
xsl/html/ebnf.xsl
xsl/html/footnote.xsl
xsl/html/glossary.xsl
xsl/html/graphics.xsl
xsl/html/index.xsl
xsl/html/info.xsl
xsl/html/lists.xsl
xsl/html/math.xsl
xsl/html/qandaset.xsl
xsl/html/refentry.xsl
xsl/html/sections.xsl
xsl/html/synop.xsl
xsl/html/task.xsl
xsl/html/titlepage.xsl
xsl/html/verbatim.xsl

index 1682ee79851f4573a5e112b7bec87bbd7ac3a094..a72c783ca14d60fece254fca3893f4a28151ad2a 100644 (file)
@@ -60,7 +60,8 @@
     </xsl:call-template>
   </xsl:variable>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="$admon.style != ''">
       <xsl:attribute name="style">
         <xsl:value-of select="$admon.style"/>
 </xsl:template>
 
 <xsl:template name="nongraphical.admonition">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="$admon.style">
       <xsl:attribute name="style">
         <xsl:value-of select="$admon.style"/>
index 41604154779f0c1000d8f348eec358be427dc6b5..97627d1e62366a37522de5e07e27c6f3fbadeab3 100644 (file)
@@ -17,7 +17,8 @@
 <xsl:template match="bibliography">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="$generate.id.attributes != 0">
       <xsl:attribute name="id">
         <xsl:call-template name="object.id"/>
 <xsl:template match="bibliodiv">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates/>
   </div>
 </xsl:template>
 
 <xsl:template match="bibliodiv/title">
-  <h3 class="{local-name(.)}">
+  <h3>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor">
       <xsl:with-param name="node" select=".."/>
     </xsl:call-template>
@@ -62,7 +65,8 @@
 <!-- ==================================================================== -->
 
 <xsl:template match="bibliolist">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
     <xsl:if test="blockinfo/title|info/title|title">
       <xsl:call-template name="formal.object.heading"/>
             <xsl:text> found in </xsl:text>
             <xsl:value-of select="$bibliography.collection"/>
           </xsl:message>
-          <div class="{local-name(.)}">
+          <div>
+            <xsl:apply-templates select="." mode="class.attribute"/>
             <xsl:call-template name="anchor"/>
             <p>
               <xsl:copy-of select="$label"/>
       </xsl:choose>
     </xsl:when>
     <xsl:otherwise>
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:call-template name="anchor">
           <xsl:with-param name="conditional" select="0"/>
         </xsl:call-template>
             <xsl:text> found in </xsl:text>
             <xsl:value-of select="$bibliography.collection"/>
           </xsl:message>
-          <div class="{local-name(.)}">
+          <div>
+            <xsl:apply-templates select="." mode="class.attribute"/>
             <xsl:call-template name="anchor"/>
             <p>
               <xsl:copy-of select="$label"/>
       </xsl:choose>
     </xsl:when>
     <xsl:otherwise>
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:call-template name="anchor">
           <xsl:with-param name="conditional" select="0"/>
         </xsl:call-template>
-        <p class="{local-name(.)}">
+        <p>
+          <xsl:apply-templates select="." mode="class.attribute"/>
           <xsl:copy-of select="$label"/>
           <xsl:apply-templates mode="bibliomixed.mode"/>
         </p>
 </xsl:template>
 
 <xsl:template match="address" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="affiliation" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="shortaffil" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="jobtitle" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="artheader|articleinfo|info" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="artpagenums" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="author" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="person.name"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="authorgroup" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="person.name.list"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="authorinitials" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="bibliomisc" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="bibliomset" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 <!-- ================================================== -->
 
 <xsl:template match="biblioset" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
   </span>
 </xsl:template>
 <!-- ================================================== -->
 
 <xsl:template match="bookbiblio" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="citetitle" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:choose>
       <xsl:when test="@pubwork = 'article'">
         <xsl:call-template name="gentext.startquote"/>
 </xsl:template>
 
 <xsl:template match="collab" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="collabname" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="confgroup" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="confdates" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="conftitle" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="confnum" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="confsponsor" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="contractnum" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="contractsponsor" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="contrib" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 <!-- ================================================== -->
 
 <xsl:template match="copyright" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="gentext">
       <xsl:with-param name="key" select="'Copyright'"/>
     </xsl:call-template>
 <!-- ================================================== -->
 
 <xsl:template match="corpauthor" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="corpcredit" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="corpname" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="date" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="edition" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="editor" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="person.name"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="firstname" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="honorific" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="indexterm" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="invpartnumber" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="isbn" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="issn" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="issuenum" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="lineage" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="orgname" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="orgdiv" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="othercredit" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="othername" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="pagenums" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="productname" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="productnumber" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="pubdate" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="publisher" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="publishername" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="pubsnumber" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="releaseinfo" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="seriesinfo" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="seriesvolnums" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="subtitle" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="surname" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="title" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <i><xsl:apply-templates mode="bibliography.mode"/></i>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="titleabbrev" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="volumenum" mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 
 <xsl:template match="bibliocoverage|biblioid|bibliorelation|bibliosource"
               mode="bibliography.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliography.mode"/>
     <xsl:copy-of select="$biblioentry.item.separator"/>
   </span>
 </xsl:template>
 
 <xsl:template match="abstract" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="address" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="affiliation" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="shortaffil" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="jobtitle" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="artpagenums" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="author" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="authorblurb|personblurb" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="authorgroup" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="authorinitials" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="bibliomisc" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 <!-- ================================================== -->
 
 <xsl:template match="bibliomset" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 <!-- ================================================== -->
 
 <xsl:template match="biblioset" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="citetitle" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:choose>
       <xsl:when test="@pubwork = 'article'">
         <xsl:call-template name="gentext.startquote"/>
 
 
 <xsl:template match="collab" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="confgroup" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="contractnum" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="contractsponsor" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="contrib" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="copyright" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="corpauthor" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="corpcredit" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="corpname" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="date" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="edition" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="editor" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="firstname" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="honorific" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="indexterm" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="invpartnumber" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="isbn" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="issn" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="issuenum" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="lineage" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="orgname" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="othercredit" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="othername" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="pagenums" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="printhistory" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="productname" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="productnumber" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="pubdate" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="publisher" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="publishername" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="pubsnumber" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="releaseinfo" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 </xsl:template>
 
 <xsl:template match="seriesvolnums" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="subtitle" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="surname" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="title" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="titleabbrev" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="volumenum" mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="bibliocoverage|biblioid|bibliorelation|bibliosource"
               mode="bibliomixed.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="bibliomixed.mode"/>
   </span>
 </xsl:template>
index 3e17b0a322108b47c78a80a71817dccf10614717..c1e2d7ec6798362741d44ce1d181394031a473cf 100644 (file)
@@ -22,7 +22,8 @@
 <!-- ==================================================================== -->
 
 <xsl:template name="block.object">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
     <xsl:apply-templates/>
   </div>
 <!-- ==================================================================== -->
 
 <xsl:template match="blockquote">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="@lang or @xml:lang">
       <xsl:call-template name="language.attribute"/>
     </xsl:if>
         </table>
       </xsl:when>
       <xsl:otherwise>
-        <blockquote class="{local-name(.)}">
+        <blockquote>
+          <xsl:apply-templates select="." mode="class.attribute"/>
           <xsl:apply-templates/>
         </blockquote>
       </xsl:otherwise>
 </xsl:template>
 
 <xsl:template match="epigraph">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
       <xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
       <xsl:if test="attribution">
         <div class="attribution">
 </xsl:template>
 
 <xsl:template match="attribution">
-  <span class="{local-name(.)}"><xsl:apply-templates/></span>
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
+    <xsl:apply-templates/>
+  </span>
 </xsl:template>
 
 <!-- ==================================================================== -->
 
 <xsl:template match="abstract|sidebar">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
     <xsl:call-template name="formal.object.heading">
       <xsl:with-param name="title">
 <!-- ==================================================================== -->
 
 <xsl:template match="revhistory">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <table border="0" width="100%" summary="Revision history">
       <tr>
         <th align="left" valign="top" colspan="3">
 <!-- ==================================================================== -->
 
 <xsl:template match="ackno">
-  <p class="{local-name(.)}">
+  <p>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates/>
   </p>
 </xsl:template>
index 497c2ca5ebc426c42f033483aa8c067891b0f22f..c31eed0c2066622679481de0cbb78878936aa42f 100644 (file)
@@ -50,7 +50,8 @@
       <xsl:choose>
         <xsl:when test="$verbatim/@linenumbering = 'numbered'
                         and $linenumbering.extension != '0'">
-          <div class="{local-name(.)}">
+          <div>
+            <xsl:apply-templates select="." mode="class.attribute"/>
             <xsl:call-template name="number.rtf.lines">
               <xsl:with-param name="rtf" select="$rtf-with-callouts"/>
               <xsl:with-param name="pi.context"
@@ -60,7 +61,8 @@
           </div>
         </xsl:when>
         <xsl:otherwise>
-          <div class="{local-name(.)}">
+          <div>
+            <xsl:apply-templates select="." mode="class.attribute"/>
             <xsl:copy-of select="$rtf-with-callouts"/>
             <xsl:apply-templates select="calloutlist"/>
           </div>
@@ -68,7 +70,8 @@
       </xsl:choose>
     </xsl:when>
     <xsl:otherwise>
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:apply-templates/>
       </div>
     </xsl:otherwise>
index 8e8f4e709fd915f170c0d2ba71f324a355d8b970..c04422f855c959306bffdfb550d5166599c3770e 100644 (file)
@@ -50,7 +50,8 @@
 
   <xsl:choose>
     <xsl:when test="$chunk != 0">
-      <cf:div class="{local-name(.)}" id="{generate-id()}">
+      <cf:div id="{generate-id()}">
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:apply-templates select="*" mode="find.chunks"/>
       </cf:div>
     </xsl:when>
index c6feeb7cff66e34a46fc0a50e9d8fdbb7524c6a9..f894563401293fc0dc873a4a940804ba523d7d28 100644 (file)
@@ -75,7 +75,8 @@
 <xsl:template match="dedication" mode="dedication">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="colophon">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="preface">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="chapter">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="article">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
index 2b1571e96b5765a3eaaa5e636c0f223825549b5e..39bd2b918f2bfcbb5ec6f7d2d58c18dbe92a7ebb 100644 (file)
@@ -17,7 +17,8 @@
 <xsl:template match="set">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
@@ -59,7 +60,8 @@
 <xsl:template match="book">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="part">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="partintro">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
index 01e0d56bda4b213fe58c0092c5291ac5c23ecf06..9906321415dad158e5e538556e4759f38e371144 100644 (file)
@@ -54,7 +54,7 @@ to be incomplete. Don't forget to read the source, too :-)</para>
   <table width="100%" cellpadding="5">
     <xsl:if test="$ebnf.table.bgcolor != ''">
       <xsl:attribute name="bgcolor">
-       <xsl:value-of select="$ebnf.table.bgcolor"/>
+        <xsl:value-of select="$ebnf.table.bgcolor"/>
       </xsl:attribute>
     </xsl:if>
     <xsl:if test="$ebnf.table.border != 0">
@@ -66,32 +66,33 @@ to be incomplete. Don't forget to read the source, too :-)</para>
     <xsl:attribute name="summary">
       <xsl:text>EBNF</xsl:text>
       <xsl:if test="title">
-       <xsl:text> for </xsl:text>
-       <xsl:value-of select="title"/>
+        <xsl:text> for </xsl:text>
+        <xsl:value-of select="title"/>
       </xsl:if>
     </xsl:attribute>
 
     <xsl:if test="title">
       <tr>
-       <th align="left" valign="top" class="{local-name(.)}">
-         <xsl:apply-templates select="title"/>
-       </th>
+        <th align="left" valign="top">
+          <xsl:apply-templates select="." mode="class.attribute"/>
+          <xsl:apply-templates select="title"/>
+        </th>
       </tr>
     </xsl:if>
     <tr>
       <td>
-       <table border="0" width="99%" cellpadding="0">
-         <xsl:if test="$ebnf.table.bgcolor != ''">
-           <xsl:attribute name="bgcolor">
-             <xsl:value-of select="$ebnf.table.bgcolor"/>
-           </xsl:attribute>
-         </xsl:if>
-         <xsl:attribute name="class">
-           <xsl:value-of select="local-name(.)"/>
-         </xsl:attribute>
-         <xsl:attribute name="summary">EBNF productions</xsl:attribute>
-         <xsl:apply-templates select="production|productionrecap"/>
-       </table>
+        <table border="0" width="99%" cellpadding="0">
+          <xsl:if test="$ebnf.table.bgcolor != ''">
+            <xsl:attribute name="bgcolor">
+              <xsl:value-of select="$ebnf.table.bgcolor"/>
+            </xsl:attribute>
+          </xsl:if>
+          <xsl:attribute name="class">
+            <xsl:value-of select="local-name(.)"/>
+          </xsl:attribute>
+          <xsl:attribute name="summary">EBNF productions</xsl:attribute>
+          <xsl:apply-templates select="production|productionrecap"/>
+        </table>
       </td>
     </tr>
   </table>
@@ -111,20 +112,20 @@ to be incomplete. Don't forget to read the source, too :-)</para>
     </td>
     <td align="right" valign="top" width="10%">
       <xsl:choose>
-       <xsl:when test="$recap">
-         <a>
-           <xsl:attribute name="href">
-             <xsl:call-template name="href.target">
-               <xsl:with-param name="object" select="."/>
-             </xsl:call-template>
-           </xsl:attribute>
-           <xsl:apply-templates select="lhs"/>
-         </a>
-       </xsl:when>
-       <xsl:otherwise>
+        <xsl:when test="$recap">
+          <a>
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="object" select="."/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:apply-templates select="lhs"/>
+          </a>
+        </xsl:when>
+        <xsl:otherwise>
           <xsl:call-template name="anchor"/>
-         <xsl:apply-templates select="lhs"/>
-       </xsl:otherwise>
+          <xsl:apply-templates select="lhs"/>
+        </xsl:otherwise>
       </xsl:choose>
     </td>
     <td valign="top" width="5%" align="center">
@@ -136,13 +137,13 @@ to be incomplete. Don't forget to read the source, too :-)</para>
     </td>
     <td align="left" valign="top" width="30%">
       <xsl:choose>
-       <xsl:when test="rhs/lineannotation|constraint">
+        <xsl:when test="rhs/lineannotation|constraint">
           <xsl:apply-templates select="rhs/lineannotation" mode="rhslo"/>
           <xsl:apply-templates select="constraint"/>
-       </xsl:when>
-       <xsl:otherwise>
-         <xsl:text>&#160;</xsl:text>
-       </xsl:otherwise>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:text>&#160;</xsl:text>
+        </xsl:otherwise>
       </xsl:choose>
     </td>
   </tr>
@@ -206,14 +207,14 @@ to be incomplete. Don't forget to read the source, too :-)</para>
     <xsl:when test="*|text()"><!--nop--></xsl:when>
     <xsl:otherwise>
       <xsl:if test="$linkend = ''">
-       <xsl:message>
-         <xsl:text>Non-terminals with no content must point to </xsl:text>
-         <xsl:text>production elements in the current document.</xsl:text>
-       </xsl:message>
-       <xsl:message>
-         <xsl:text>Invalid xpointer for empty nt: </xsl:text>
-         <xsl:value-of select="@def"/>
-       </xsl:message>
+        <xsl:message>
+          <xsl:text>Non-terminals with no content must point to </xsl:text>
+          <xsl:text>production elements in the current document.</xsl:text>
+        </xsl:message>
+        <xsl:message>
+          <xsl:text>Invalid xpointer for empty nt: </xsl:text>
+          <xsl:value-of select="@def"/>
+        </xsl:message>
       </xsl:if>
     </xsl:otherwise>
   </xsl:choose>
@@ -221,14 +222,14 @@ to be incomplete. Don't forget to read the source, too :-)</para>
   <xsl:variable name="href">
     <xsl:choose>
       <xsl:when test="$linkend != ''">
-       <xsl:variable name="targets" select="key('id',$linkend)"/>
-       <xsl:variable name="target" select="$targets[1]"/>
-       <xsl:call-template name="href.target">
-         <xsl:with-param name="object" select="$target"/>
-       </xsl:call-template>
+        <xsl:variable name="targets" select="key('id',$linkend)"/>
+        <xsl:variable name="target" select="$targets[1]"/>
+        <xsl:call-template name="href.target">
+          <xsl:with-param name="object" select="$target"/>
+        </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
-       <xsl:value-of select="@def"/>
+        <xsl:value-of select="@def"/>
       </xsl:otherwise>
     </xsl:choose>
   </xsl:variable>
@@ -236,19 +237,19 @@ to be incomplete. Don't forget to read the source, too :-)</para>
   <a href="{$href}">
     <xsl:choose>
       <xsl:when test="*|text()">
-       <xsl:apply-templates/>
+        <xsl:apply-templates/>
       </xsl:when>
       <xsl:otherwise>
-       <xsl:choose>
-         <xsl:when test="$linkend != ''">
-           <xsl:variable name="targets" select="key('id',$linkend)"/>
-           <xsl:variable name="target" select="$targets[1]"/>
-           <xsl:apply-templates select="$target/lhs"/>
-         </xsl:when>
-         <xsl:otherwise>
-           <xsl:text>???</xsl:text>
-         </xsl:otherwise>
-       </xsl:choose>
+        <xsl:choose>
+          <xsl:when test="$linkend != ''">
+            <xsl:variable name="targets" select="key('id',$linkend)"/>
+            <xsl:variable name="target" select="$targets[1]"/>
+            <xsl:apply-templates select="$target/lhs"/>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:text>???</xsl:text>
+          </xsl:otherwise>
+        </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
   </a>
@@ -294,8 +295,8 @@ to be incomplete. Don't forget to read the source, too :-)</para>
       <xsl:variable name="targets" select="key('id',@linkend)"/>
       <xsl:variable name="target" select="$targets[1]"/>
       <xsl:if test="$target/@role">
-       <xsl:value-of select="$target/@role"/>
-       <xsl:text>: </xsl:text>
+        <xsl:value-of select="$target/@role"/>
+        <xsl:text>: </xsl:text>
       </xsl:if>
     </xsl:otherwise>
   </xsl:choose>
@@ -312,7 +313,8 @@ to be incomplete. Don't forget to read the source, too :-)</para>
 </xsl:template>
 
 <xsl:template match="constraintdef">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
     <xsl:apply-templates/>
   </div>
index 8e3491db76ce9abf1ebf4096c9695d5707ed240e..685e2e0c0b0ebdfc25bd924f8e886d40eddfed51 100644 (file)
 <xsl:template match="footnote" name="process.footnote" mode="process.footnote.mode">
   <xsl:choose>
     <xsl:when test="local-name(*[1]) = 'para' or local-name(*[1]) = 'simpara'">
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:apply-templates/>
       </div>
     </xsl:when>
 
     <xsl:when test="$html.cleanup != 0 and function-available('exsl:node-set')">
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:apply-templates select="*[1]" mode="footnote.body.number"/>
         <xsl:apply-templates select="*[position() &gt; 1]"/>
       </div>
         <xsl:value-of select="local-name(*[1])"/>
         <xsl:text> unexpected as first child of footnote.</xsl:text>
       </xsl:message>
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:apply-templates/>
       </div>
     </xsl:otherwise>
index 8a2b1fa2a44812e486207a3a9f7361172a87ecfc..7562c08bc66fb63c6a6894ea4b6fb4ae27fa8851 100644 (file)
@@ -17,7 +17,8 @@
 <xsl:template match="glossary">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="$generate.id.attributes != 0">
       <xsl:attribute name="id">
         <xsl:call-template name="object.id"/>
@@ -61,7 +62,8 @@
 <!-- ==================================================================== -->
 
 <xsl:template match="glosslist">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
     <xsl:if test="blockinfo/title|info/title|title">
       <xsl:call-template name="formal.object.heading"/>
@@ -77,7 +79,8 @@
 <xsl:template match="glossdiv">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates select="(glossentry[1]/preceding-sibling::*)"/>
 
     <dl>
@@ -87,7 +90,8 @@
 </xsl:template>
 
 <xsl:template match="glossdiv/title">
-  <h3 class="{local-name(.)}">
+  <h3>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates/>
   </h3>
 </xsl:template>
@@ -320,7 +324,8 @@ GlossEntry ::=
     </xsl:message>
   </xsl:if>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="$generate.id.attributes != 0">
       <xsl:attribute name="id">
         <xsl:call-template name="object.id"/>
@@ -375,7 +380,8 @@ GlossEntry ::=
 <xsl:template match="glossdiv" mode="auto-glossary">
   <xsl:param name="terms" select="."/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates select="(glossentry[1]/preceding-sibling::*)"/>
 
     <dl>
index 08b92c4e1275b22e3a619a0ddb0a72c8139b42d4..af1d09e0b442b6e8968510a2df8a56c6e5a649ba 100644 (file)
@@ -62,7 +62,8 @@
 <!-- ==================================================================== -->
 
 <xsl:template match="screenshot">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates/>
   </div>
 </xsl:template>
@@ -1065,7 +1066,8 @@ valign: <xsl:value-of select="@valign"/></xsl:message>
     <xsl:value-of select="$object/descendant::imagedata[@align][1]/@align"/>
   </xsl:variable>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="$align != '' ">
       <xsl:attribute name="align">
         <xsl:value-of select="$align"/>
@@ -1079,7 +1081,8 @@ valign: <xsl:value-of select="@valign"/></xsl:message>
 </xsl:template>
 
 <xsl:template match="inlinemediaobject">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
     <xsl:call-template name="select.mediaobject"/>
   </span>
@@ -1368,7 +1371,8 @@ valign: <xsl:value-of select="@valign"/></xsl:message>
 <!-- ==================================================================== -->
 
 <xsl:template match="caption">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="@align = 'right' or @align = 'left' or @align='center'">
       <xsl:attribute name="align"><xsl:value-of
                          select="@align"/></xsl:attribute>
index 96642870cdc609817cf9a114d575fbdb4b535b43..a91984019497c7e4fd057bf0fad918fcb7351967 100644 (file)
@@ -24,7 +24,8 @@
   <xsl:call-template name="id.warning"/>
 
   <xsl:if test="count(*)>0 or $generate.index != '0'">
-    <div class="{local-name(.)}">
+    <div>
+      <xsl:apply-templates select="." mode="class.attribute"/>
       <xsl:if test="$generate.id.attributes != 0">
         <xsl:attribute name="id">
           <xsl:call-template name="object.id"/>
@@ -78,7 +79,8 @@
   <xsl:call-template name="id.warning"/>
 
   <xsl:if test="count(*)>0 or $generate.index != '0'">
-    <div class="{local-name(.)}">
+    <div>
+      <xsl:apply-templates select="." mode="class.attribute"/>
       <xsl:if test="$generate.id.attributes != 0">
         <xsl:attribute name="id">
           <xsl:call-template name="object.id"/>
 <xsl:template match="indexdiv">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="$generate.id.attributes != 0">
       <xsl:attribute name="id">
         <xsl:call-template name="object.id"/>
 </xsl:template>
 
 <xsl:template match="indexdiv/title">
-  <h3 class="{local-name(.)}">
+  <h3>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates/>
   </h3>
 </xsl:template>
index 38806bacb13a3eff4dd85ddd9b26cfad1b31b1ab..e97b6658242547af78192c9fd7c1f2e4d6f41e06 100644 (file)
@@ -23,7 +23,8 @@
 <!-- called from named templates in a given mode -->
 
 <xsl:template match="corpauthor">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates/>
   </span>
 </xsl:template>
@@ -31,7 +32,8 @@
 <!-- ==================================================================== -->
 
 <xsl:template match="jobtitle">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates/>
   </span>
 </xsl:template>
index 97ac07a8affa0d285227132aa8acf2b3810ea146..8b83a37896bb4b577f9b2310f0f2773b42f62bde 100644 (file)
@@ -15,7 +15,8 @@
 <!-- ==================================================================== -->
 
 <xsl:template match="itemizedlist">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
     <xsl:if test="title">
       <xsl:call-template name="formal.object.heading"/>
     </xsl:choose>
   </xsl:variable>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
 
     <xsl:if test="title">
     </xsl:call-template>
   </xsl:variable>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
     <xsl:if test="title">
       <xsl:call-template name="formal.object.heading"/>
 </xsl:template>
 
 <xsl:template match="simplelist[@type='inline']">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
   <!-- if dbchoice PI exists, use that to determine the choice separator -->
   <!-- (that is, equivalent of "and" or "or" in current locale), or literal -->
   <!-- value of "choice" otherwise -->
                 |comment()[not(preceding-sibling::step)]
                 |processing-instruction()[not(preceding-sibling::step)]"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor">
       <xsl:with-param name="conditional">
         <xsl:choose>
     </xsl:call-template>
   </xsl:variable>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
 
     <xsl:choose>
 <!-- ==================================================================== -->
 
 <xsl:template match="calloutlist">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
     <xsl:if test="title|info/title">
       <xsl:call-template name="formal.object.heading"/>
index dc164a2694e22c3c7cd0c28dad34506d264f84bb..f6033bd3c000e84c005555ef4cc6e2ed415dca6a 100644 (file)
@@ -22,7 +22,8 @@
 </xsl:template>
 
 <xsl:template match="mathphrase">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates/>
   </span>
 </xsl:template>
index 8ed253d3e87ad0df892aa7d46cceafa0959db7d8..313b17171a85e3d826ce636504a96950bcd0607f 100644 (file)
@@ -36,7 +36,8 @@
     </xsl:call-template>
   </xsl:variable>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates select="$title"/>
     <xsl:if test="((contains($toc.params, 'toc') and $toc != '0') or $toc = '1')
                   and not(ancestor::answer and not($qanda.nested.in.toc=0))">
     </xsl:choose>
   </xsl:variable>
 
-  <tr class="{local-name(.)}">
+  <tr>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <td align="left" valign="top">
       <xsl:call-template name="anchor">
         <xsl:with-param name="node" select=".."/>
index 7dfe843a724190380dbf12d23d475f4b31850fd9..6aaf5dc0237cb10cd75d98492f74fab94ebc45f9 100644 (file)
@@ -17,7 +17,8 @@
 <xsl:template match="reference">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
@@ -85,7 +86,8 @@
 <xsl:template match="refentry">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 </xsl:template>
 
 <xsl:template match="refnamediv">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 </xsl:template>
 
 <xsl:template match="refsynopsisdiv">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 </xsl:template>
 
 <xsl:template match="refsection|refsect1|refsect2|refsect3">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
index 95f412c9cb89ba81c5593f73b5a074b4b15f111b..006b6838d9a492d3f9306d41f4a8f7f87237ce44 100644 (file)
@@ -19,7 +19,8 @@
 
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="sect1">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="sect2">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="sect3">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="sect4">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="sect5">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
 <xsl:template match="simplesect">
   <xsl:call-template name="id.warning"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="dir">
       <xsl:with-param name="inherit" select="1"/>
     </xsl:call-template>
index a9b32db71fd6bd81daf3dafaf4e491212373a2f4..5c3eb487ea828ab8b5f00fd283bd0fb57ec76f15 100644 (file)
@@ -22,7 +22,8 @@
 <!-- ==================================================================== -->
 
 <xsl:template match="cmdsynopsis">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <p>
       <xsl:call-template name="anchor"/>
       <xsl:apply-templates/>
 </xsl:template>
 
 <xsl:template match="funcsynopsisinfo">
-  <pre class="{local-name(.)}"><xsl:apply-templates/></pre>
+  <pre>
+    <xsl:apply-templates select="." mode="class.attribute"/>
+    <xsl:apply-templates/>
+  </pre>
 </xsl:template>
 
 <!-- ====================================================================== -->
@@ -231,7 +235,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 </xsl:template>
 
 <xsl:template match="funcdef" mode="kr-nontabular">
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="kr-nontabular"/>
     <xsl:text>(</xsl:text>
   </code>
@@ -347,7 +352,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 </xsl:template>
 
 <xsl:template match="funcdef" mode="kr-tabular">
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="kr-tabular"/>
     <xsl:text>(</xsl:text>
   </code>
@@ -512,7 +518,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 </xsl:template>
 
 <xsl:template match="funcdef" mode="ansi-nontabular">
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="ansi-nontabular"/>
     <xsl:text>(</xsl:text>
   </code>
@@ -598,7 +605,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 </xsl:template>
 
 <xsl:template match="funcdef" mode="ansi-tabular">
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="ansi-tabular"/>
     <xsl:text>(</xsl:text>
   </code>
@@ -781,7 +789,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 <!-- ===== Java ======================================================== -->
 
 <xsl:template match="classsynopsis" mode="java">
-  <pre class="{local-name(.)}">
+  <pre>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates select="ooclass[1]" mode="java"/>
     <xsl:if test="ooclass[preceding-sibling::*]">
       <xsl:text> extends</xsl:text>
@@ -827,13 +836,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
       <xsl:text> </xsl:text>
     </xsl:otherwise>
   </xsl:choose>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="java"/>
   </span>
 </xsl:template>
 
 <xsl:template match="modifier" mode="java">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="java"/>
     <xsl:if test="following-sibling::*">
       <xsl:text>&nbsp;</xsl:text>
@@ -845,7 +856,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="java"/>
   </span>
 </xsl:template>
@@ -854,7 +866,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="java"/>
   </span>
 </xsl:template>
@@ -863,13 +876,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="java"/>
   </span>
 </xsl:template>
 
 <xsl:template match="fieldsynopsis" mode="java">
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="parent::classsynopsis">
       <xsl:text>&nbsp;&nbsp;</xsl:text>
     </xsl:if>
@@ -880,34 +895,39 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 </xsl:template>
 
 <xsl:template match="type" mode="java">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="java"/>
     <xsl:text>&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="varname" mode="java">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="java"/>
     <xsl:text>&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="initializer" mode="java">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:text>=&nbsp;</xsl:text>
     <xsl:apply-templates mode="java"/>
   </span>
 </xsl:template>
 
 <xsl:template match="void" mode="java">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:text>void&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="methodname" mode="java">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="java"/>
   </span>
 </xsl:template>
@@ -924,13 +944,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
       </xsl:call-template>
     </xsl:if>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="java"/>
   </span>
 </xsl:template>
 
 <xsl:template match="parameter" mode="java">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="java"/>
   </span>
 </xsl:template>
@@ -954,7 +976,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
     <xsl:apply-templates select="methodname" mode="java"/>
   </xsl:variable>
 
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:copy-of select="$decl"/>
     <xsl:text>(</xsl:text>
     <xsl:apply-templates select="methodparam" mode="java">
@@ -978,7 +1001,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 <!-- ===== C++ ========================================================= -->
 
 <xsl:template match="classsynopsis" mode="cpp">
-  <pre class="{local-name(.)}">
+  <pre>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates select="ooclass[1]" mode="cpp"/>
     <xsl:if test="ooclass[preceding-sibling::*]">
       <xsl:text>: </xsl:text>
@@ -1019,13 +1043,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="preceding-sibling::*">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="cpp"/>
   </span>
 </xsl:template>
 
 <xsl:template match="modifier" mode="cpp">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="cpp"/>
     <xsl:if test="following-sibling::*">
       <xsl:text>&nbsp;</xsl:text>
@@ -1037,7 +1063,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="cpp"/>
   </span>
 </xsl:template>
@@ -1046,7 +1073,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="cpp"/>
   </span>
 </xsl:template>
@@ -1055,13 +1083,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="cpp"/>
   </span>
 </xsl:template>
 
 <xsl:template match="fieldsynopsis" mode="cpp">
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="parent::classsynopsis">
       <xsl:text>&nbsp;&nbsp;</xsl:text>
     </xsl:if>
@@ -1072,34 +1102,39 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 </xsl:template>
 
 <xsl:template match="type" mode="cpp">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="cpp"/>
     <xsl:text>&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="varname" mode="cpp">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="cpp"/>
     <xsl:text>&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="initializer" mode="cpp">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:text>=&nbsp;</xsl:text>
     <xsl:apply-templates mode="cpp"/>
   </span>
 </xsl:template>
 
 <xsl:template match="void" mode="cpp">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:text>void&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="methodname" mode="cpp">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="cpp"/>
   </span>
 </xsl:template>
@@ -1108,13 +1143,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="preceding-sibling::methodparam">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="cpp"/>
   </span>
 </xsl:template>
 
 <xsl:template match="parameter" mode="cpp">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="cpp"/>
   </span>
 </xsl:template>
@@ -1125,7 +1162,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:variable name="notmod" select="*[local-name(.) != 'modifier']"/>
   <xsl:variable name="end-modifiers" select="modifier[preceding-sibling::*[local-name(.) != 'modifier']]"/>
 
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="parent::classsynopsis">
       <xsl:text>&nbsp;&nbsp;</xsl:text>
     </xsl:if>
@@ -1157,7 +1195,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 <!-- ===== IDL ========================================================= -->
 
 <xsl:template match="classsynopsis" mode="idl">
-  <pre class="{local-name(.)}">
+  <pre>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:text>interface </xsl:text>
     <xsl:apply-templates select="ooclass[1]" mode="idl"/>
     <xsl:if test="ooclass[preceding-sibling::*]">
@@ -1199,13 +1238,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="preceding-sibling::*">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="idl"/>
   </span>
 </xsl:template>
 
 <xsl:template match="modifier" mode="idl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="idl"/>
     <xsl:if test="following-sibling::*">
       <xsl:text>&nbsp;</xsl:text>
@@ -1217,7 +1258,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="idl"/>
   </span>
 </xsl:template>
@@ -1226,7 +1268,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="idl"/>
   </span>
 </xsl:template>
@@ -1235,13 +1278,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="idl"/>
   </span>
 </xsl:template>
 
 <xsl:template match="fieldsynopsis" mode="idl">
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="parent::classsynopsis">
       <xsl:text>&nbsp;&nbsp;</xsl:text>
     </xsl:if>
@@ -1252,34 +1297,39 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 </xsl:template>
 
 <xsl:template match="type" mode="idl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="idl"/>
     <xsl:text>&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="varname" mode="idl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="idl"/>
     <xsl:text>&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="initializer" mode="idl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:text>=&nbsp;</xsl:text>
     <xsl:apply-templates mode="idl"/>
   </span>
 </xsl:template>
 
 <xsl:template match="void" mode="idl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:text>void&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="methodname" mode="idl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="idl"/>
   </span>
 </xsl:template>
@@ -1288,13 +1338,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="preceding-sibling::methodparam">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="idl"/>
   </span>
 </xsl:template>
 
 <xsl:template match="parameter" mode="idl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="idl"/>
   </span>
 </xsl:template>
@@ -1304,7 +1356,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:variable name="start-modifiers" select="modifier[following-sibling::*[local-name(.) != 'modifier']]"/>
   <xsl:variable name="notmod" select="*[local-name(.) != 'modifier']"/>
   <xsl:variable name="end-modifiers" select="modifier[preceding-sibling::*[local-name(.) != 'modifier']]"/>
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="parent::classsynopsis">
       <xsl:text>&nbsp;&nbsp;</xsl:text>
     </xsl:if>
@@ -1337,7 +1390,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 <!-- ===== Perl ======================================================== -->
 
 <xsl:template match="classsynopsis" mode="perl">
-  <pre class="{local-name(.)}">
+  <pre>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:text>package </xsl:text>
     <xsl:apply-templates select="ooclass[1]" mode="perl"/>
     <xsl:text>;</xsl:text>
@@ -1366,13 +1420,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="preceding-sibling::*">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="perl"/>
   </span>
 </xsl:template>
 
 <xsl:template match="modifier" mode="perl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="perl"/>
     <xsl:if test="following-sibling::*">
       <xsl:text>&nbsp;</xsl:text>
@@ -1384,7 +1440,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="perl"/>
   </span>
 </xsl:template>
@@ -1393,7 +1450,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="perl"/>
   </span>
 </xsl:template>
@@ -1402,13 +1460,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="perl"/>
   </span>
 </xsl:template>
 
 <xsl:template match="fieldsynopsis" mode="perl">
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="parent::classsynopsis">
       <xsl:text>&nbsp;&nbsp;</xsl:text>
     </xsl:if>
@@ -1419,34 +1479,39 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 </xsl:template>
 
 <xsl:template match="type" mode="perl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="perl"/>
     <xsl:text>&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="varname" mode="perl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="perl"/>
     <xsl:text>&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="initializer" mode="perl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:text>=&nbsp;</xsl:text>
     <xsl:apply-templates mode="perl"/>
   </span>
 </xsl:template>
 
 <xsl:template match="void" mode="perl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:text>void&nbsp;</xsl:text>
   </span>
 </xsl:template>
 
 <xsl:template match="methodname" mode="perl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="perl"/>
   </span>
 </xsl:template>
@@ -1455,13 +1520,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:if test="preceding-sibling::methodparam">
     <xsl:text>, </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="perl"/>
   </span>
 </xsl:template>
 
 <xsl:template match="parameter" mode="perl">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="perl"/>
   </span>
 </xsl:template>
@@ -1472,7 +1539,8 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:variable name="notmod" select="*[local-name(.) != 'modifier']"/>
   <xsl:variable name="end-modifiers" select="modifier[preceding-sibling::*[local-name(.) != 'modifier']]"/>
 
-  <code class="{local-name(.)}">
+  <code>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:text>sub </xsl:text>
 
     <xsl:apply-templates select="methodname" mode="perl"/>
index 1bc9641a5a776e27953adf98151482254f1f23de..4b0dfaa68f9132d3f88a3c110826616b5efe913c 100644 (file)
@@ -35,7 +35,8 @@
                 select="*[not(self::title
                               or self::titleabbrev)]"/>
 
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
 
     <xsl:if test="title and $placement = 'before'">
index ddc88081c215cd3986d4eb899ba038f72fa70497..6ea86090dda88ccb53602226cb591f4b8f219f34 100644 (file)
 </xsl:template>
 
 <xsl:template match="abbrev" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="abstract" mode="titlepage.mode">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
     <xsl:call-template name="formal.object.heading">
       <xsl:with-param name="title">
                     and @linenumbering = 'numbered'
                     and $use.extensions != '0'
                     and $linenumbering.extension != '0'">
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:call-template name="paragraph">
           <xsl:with-param name="content">
             <xsl:call-template name="number.rtf.lines">
     </xsl:when>
 
     <xsl:otherwise>
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:call-template name="paragraph">
           <xsl:with-param name="content">
             <xsl:call-template name="make-verbatim">
 </xsl:template>
 
 <xsl:template match="affiliation" mode="titlepage.mode">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
   </div>
 </xsl:template>
 
 <xsl:template match="artpagenums" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template name="credits.div">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:if test="self::editor[position()=1] and not($editedby.enabled = 0)">
       <h4 class="editedby"><xsl:call-template name="gentext.edited.by"/></h4>
     </xsl:if>
-    <h3 class="{local-name(.)}"><xsl:call-template name="person.name"/></h3>
+    <h3>
+      <xsl:apply-templates select="." mode="class.attribute"/>
+      <xsl:call-template name="person.name"/>
+    </h3>
     <xsl:if test="not($contrib.inline.enabled = 0)">
       <xsl:apply-templates mode="titlepage.mode" select="./contrib"/>
     </xsl:if>
 </xsl:template>
 
 <xsl:template match="authorblurb|personblurb" mode="titlepage.mode">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
   </div>
 </xsl:template>
 
 <xsl:template match="authorgroup" mode="titlepage.mode">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
     <xsl:apply-templates mode="titlepage.mode"/>
   </div>
 </xsl:template>
 
 <xsl:template match="authorinitials" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="collab" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="collabname" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
   </span>
 </xsl:template>
 
 <xsl:template match="confgroup" mode="titlepage.mode">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
   </div>
 </xsl:template>
 
 <xsl:template match="confdates" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="confsponsor" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="conftitle" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="contractnum" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="contractsponsor" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 <xsl:template match="contrib" mode="titlepage.mode">
   <xsl:choose>
     <xsl:when test="not($contrib.inline.enabled = 0)">
-      <span class="{local-name(.)}">
+      <span>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:apply-templates mode="titlepage.mode"/>
       </span>
     </xsl:when>
     <xsl:otherwise>
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <p><xsl:apply-templates mode="titlepage.mode"/></p>
       </div>
     </xsl:otherwise>
 </xsl:template>
 
 <xsl:template match="copyright" mode="titlepage.mode">
-  <p class="{local-name(.)}">
+  <p>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="gentext">
       <xsl:with-param name="key" select="'Copyright'"/>
     </xsl:call-template>
 </xsl:template>
 
 <xsl:template match="corpauthor" mode="titlepage.mode">
-  <h3 class="{local-name(.)}">
+  <h3>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
   </h3>
 </xsl:template>
 
 <xsl:template match="corpcredit" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="corpname" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="date" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="edition" mode="titlepage.mode">
-  <p class="{local-name(.)}">
+  <p>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <xsl:call-template name="gentext.space"/>
     <xsl:call-template name="gentext">
 </xsl:template>
 
 <xsl:template match="firstname" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="honorific" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="isbn" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="issn" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="biblioid" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="invpartnumber" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="issuenum" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="jobtitle" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
             </head>
             <body>
               <xsl:call-template name="body.attributes"/>
-              <div class="{local-name(.)}">
+              <div>
+                <xsl:apply-templates select="." mode="class.attribute"/>
                 <xsl:apply-templates mode="titlepage.mode"/>
               </div>
             </body>
       </xsl:call-template>
     </xsl:when>
     <xsl:otherwise>
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <a name="{$id}"/>
         <xsl:apply-templates mode="titlepage.mode"/>
       </div>
 </xsl:template>
 
 <xsl:template match="lineage" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
   <xsl:if test="preceding-sibling::*[1][self::orgname]">
     <xsl:text> </xsl:text>
   </xsl:if>
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="orgname" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="othername" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="pagenums" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="printhistory" mode="titlepage.mode">
-  <div class="{local-name(.)}">
+  <div>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
   </div>
 </xsl:template>
 
 <xsl:template match="productname" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="productnumber" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="publishername" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="pubsnumber" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
   </xsl:variable>
 
   <xsl:variable name="contents">
-    <div class="{local-name(.)}">
+    <div>
+      <xsl:apply-templates select="." mode="class.attribute"/>
       <table border="1" width="100%" summary="Revision history">
         <tr>
           <th align="left" valign="top" colspan="{$numcols}">
 </xsl:template>
 
 <xsl:template match="seriesvolnums" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="shortaffil" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
 </xsl:template>
 
 <xsl:template match="subtitle" mode="titlepage.mode">
-  <h2 class="{local-name(.)}">
+  <h2>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
   </h2>
 </xsl:template>
 
 <xsl:template match="surname" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
     </xsl:choose>
   </xsl:variable>
 
-  <h1 class="{local-name(.)}">
+  <h1>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <a name="{$id}"/>
     <xsl:choose>
       <xsl:when test="$show.revisionflag != 0 and @revisionflag">
 </xsl:template>
 
 <xsl:template match="volumenum" mode="titlepage.mode">
-  <span class="{local-name(.)}">
+  <span>
+    <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:apply-templates mode="titlepage.mode"/>
     <br/>
   </span>
index bd88d933c4f9176e3ce40834fcc440afd97d7b8e..9df94e14c7016c18ce8a035bdf72e309231a7f32 100644 (file)
       <xsl:variable name="rtf">
        <xsl:call-template name="apply-highlighting"/>
       </xsl:variable>
-      <pre class="{local-name(.)}">
+      <pre>
+        <xsl:apply-templates select="." mode="class.attribute"/>
        <xsl:call-template name="number.rtf.lines">
          <xsl:with-param name="rtf" select="$rtf"/>
        </xsl:call-template>
       </pre>
     </xsl:when>
     <xsl:otherwise>
-      <pre class="{local-name(.)}">
+      <pre>
+        <xsl:apply-templates select="." mode="class.attribute"/>
        <xsl:call-template name="apply-highlighting"/>
       </pre>
     </xsl:otherwise>
                    and $linenumbering.extension != '0'">
       <xsl:choose>
        <xsl:when test="@class='monospaced'">
-         <pre class="{local-name(.)}">
+          <pre>
+            <xsl:apply-templates select="." mode="class.attribute"/>
            <xsl:call-template name="number.rtf.lines">
              <xsl:with-param name="rtf" select="$rtf"/>
            </xsl:call-template>
          </pre>
        </xsl:when>
        <xsl:otherwise>
-         <div class="{local-name(.)}">
+          <div>
+            <xsl:apply-templates select="." mode="class.attribute"/>
            <p>
              <xsl:call-template name="number.rtf.lines">
                <xsl:with-param name="rtf" select="$rtf"/>
     <xsl:otherwise>
       <xsl:choose>
        <xsl:when test="@class='monospaced'">
-         <pre class="{local-name(.)}">
+          <pre>
+            <xsl:apply-templates select="." mode="class.attribute"/>
            <xsl:copy-of select="$rtf"/>
          </pre>
        </xsl:when>
        <xsl:otherwise>
-         <div class="{local-name(.)}">
+          <div>
+            <xsl:apply-templates select="." mode="class.attribute"/>
            <p>
              <xsl:call-template name="make-verbatim">
                <xsl:with-param name="rtf" select="$rtf"/>
                     and @linenumbering = 'numbered'
                     and $use.extensions != '0'
                     and $linenumbering.extension != '0'">
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <p>
           <xsl:call-template name="number.rtf.lines">
             <xsl:with-param name="rtf" select="$rtf"/>
     </xsl:when>
 
     <xsl:otherwise>
-      <div class="{local-name(.)}">
+      <div>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <p>
           <xsl:call-template name="make-verbatim">
             <xsl:with-param name="rtf" select="$rtf"/>