]> granicus.if.org Git - docbook-dsssl/commitdiff
Added some additional "punctuation" characters.
authorMichael Smith <xmldoc@users.sourceforge.net>
Thu, 6 Apr 2006 00:15:20 +0000 (00:15 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Thu, 6 Apr 2006 00:15:20 +0000 (00:15 +0000)
contrib/tools/tennison/modify.xsl

index 9cfa499f58e17fd41cb57af70c7c5c4faa091b7e..596ec92953aa9a516d48c5d7598cc3bbe6e1f02b 100644 (file)
@@ -7,28 +7,25 @@
 ]>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"
-               version='1.0'>
+                version='1.0'>
 
   <xsl:output method="xml"
-             indent="no"
-              />
-  
+              indent="no"/>
+
   <xsl:template match="node() | @*">
     <xsl:copy>
       <xsl:apply-templates select="@* | node()"/>
     </xsl:copy>
   </xsl:template>
+
   <!-- * this template modifies the value of the "punctuation" variable -->
   <!-- * from the original markup.xsl so that it does not contain the -->
-  <!-- * dot/period character -->
-  <xsl:template match="*[local-name = 'variable'][@name = 'punctuation']">
+  <!-- * dot/period character, and adds "/", "=", and "*" -->
+  <xsl:template match="*[local-name() = 'variable'][@name = 'punctuation']">
     <xsl:element name="xsl:variable">
-      <xsl:attribute name="name">
-           <!-- * remove dot from the list of punctuation chars -->
-        <xsl:text>,:;!?&tab;&cr;&lf;&nbsp; &quot;'()[]&lt;>{}</xsl:text>
-      </xsl:attribute>
+      <xsl:attribute name="name">punctuation</xsl:attribute>
+      <xsl:text>,:;!?&tab;&cr;&lf;&nbsp; &quot;'()[]&lt;>{}/=*</xsl:text>
     </xsl:element>
   </xsl:template>
-  
+
 </xsl:stylesheet>