so class names can be customized more easily.
</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"/>
<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>
<!-- ==================================================================== -->
<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>
<!-- ==================================================================== -->
<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>
<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"
</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>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
- <div class="{local-name(.)}">
+ <div>
+ <xsl:apply-templates select="." mode="class.attribute"/>
<xsl:apply-templates/>
</div>
</xsl:otherwise>
<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>
<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>
<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>
<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>
<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">
<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>
</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">
</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> </xsl:text>
- </xsl:otherwise>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text> </xsl:text>
+ </xsl:otherwise>
</xsl:choose>
</td>
</tr>
<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>
<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>
<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>
<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>
</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>
<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() > 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>
<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"/>
<!-- ==================================================================== -->
<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"/>
<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>
</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>
</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"/>
<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>
<!-- ==================================================================== -->
<xsl:template match="screenshot">
- <div class="{local-name(.)}">
+ <div>
+ <xsl:apply-templates select="." mode="class.attribute"/>
<xsl:apply-templates/>
</div>
</xsl:template>
<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"/>
</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>
<!-- ==================================================================== -->
<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>
<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: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>
<!-- 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>
<!-- ==================================================================== -->
<xsl:template match="jobtitle">
- <span class="{local-name(.)}">
+ <span>
+ <xsl:apply-templates select="." mode="class.attribute"/>
<xsl:apply-templates/>
</span>
</xsl:template>
<!-- ==================================================================== -->
<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"/>
</xsl:template>
<xsl:template match="mathphrase">
- <span class="{local-name(.)}">
+ <span>
+ <xsl:apply-templates select="." mode="class.attribute"/>
<xsl:apply-templates/>
</span>
</xsl:template>
</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=".."/>
<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>
<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>
<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>
<!-- ==================================================================== -->
<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>
<!-- ====================================================================== -->
</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>
</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>
</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>
</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>
<!-- ===== 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>
<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> </xsl:text>
<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>
<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>
<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> </xsl:text>
</xsl:if>
</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> </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> </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>= </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 </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>
</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>
<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">
<!-- ===== 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>
<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> </xsl:text>
<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>
<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>
<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> </xsl:text>
</xsl:if>
</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> </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> </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>= </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 </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>
<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>
<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> </xsl:text>
</xsl:if>
<!-- ===== 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::*]">
<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> </xsl:text>
<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>
<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>
<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> </xsl:text>
</xsl:if>
</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> </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> </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>= </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 </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>
<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>
<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> </xsl:text>
</xsl:if>
<!-- ===== 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>
<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> </xsl:text>
<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>
<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>
<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> </xsl:text>
</xsl:if>
</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> </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> </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>= </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 </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>
<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>
<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"/>
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'">
</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>
<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"/>