]> granicus.if.org Git - docbook-dsssl/commitdiff
Improve processing of trademarks
authorNorman Walsh <ndw@nwalsh.com>
Sat, 21 Apr 2001 14:36:41 +0000 (14:36 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 21 Apr 2001 14:36:41 +0000 (14:36 +0000)
xsl/html/inline.xsl

index f64024be60d51edac4ba8a1e59dfe1239cc0ab1e..6e825ada440b3c7bed873ce534548c1142deedca 100644 (file)
 
 <xsl:template match="trademark">
   <xsl:call-template name="inline.charseq"/>
-  <xsl:if test="@class">
-    <xsl:call-template name="dingbat">
-      <xsl:with-param name="dingbat" select="@class"/>
-    </xsl:call-template>
-  </xsl:if>
+  <xsl:choose>
+    <xsl:when test="@class = 'copyright'
+                    or @class = 'registered'">
+      <xsl:call-template name="dingbat">
+        <xsl:with-param name="dingbat" select="@class"/>
+      </xsl:call-template>
+    </xsl:when>
+    <xsl:when test="@class = 'service'">
+      <sup>SM</sup>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:call-template name="dingbat">
+        <xsl:with-param name="dingbat" select="'trademark'"/>
+      </xsl:call-template>
+    </xsl:otherwise>
+  </xsl:choose>
 </xsl:template>
 
 <xsl:template match="firstterm">