# HG changeset patch
# User Henning Brinkmann <hbrinkm@openoffice.org>
# Date 1284563322 -7200
# Node ID 6d909d9c6787f47f4e1daf2a10df84cc50f4ede7
# Parent  c8b7b7965f72202d98ad69f2830d65d22a53f74c
rtftok01: spectobnf: handle <spec>

diff --git a/writerfilter/source/rtftok/spectobnf.xsl b/writerfilter/source/rtftok/spectobnf.xsl
--- a/writerfilter/source/rtftok/spectobnf.xsl
+++ b/writerfilter/source/rtftok/spectobnf.xsl
@@ -569,10 +569,15 @@
   </xsl:choose>
 </xsl:template>
 
-<xsl:template name="chrfmt">
-  <define name="chrfmt">
+<xsl:template name="chrfmtetc">
+  <xsl:param name="define"/>
+  <xsl:param name="search"/>
+  <define>
+    <xsl:attribute name="name">
+      <xsl:value-of select="$define"/>
+    </xsl:attribute>
     <any>
-      <xsl:for-each select="key('paragraphs', 'Font (Character) Formatting Properties')">
+      <xsl:for-each select="key('paragraphs', $search)">
         <xsl:for-each select="following-sibling::w:tbl[1]">
           <xsl:for-each select="w:tr">
             <xsl:if test="not(w:trPr/w:tblHeader)">
@@ -605,7 +610,14 @@
 <xsl:template match="/">
   <out>
     <xsl:call-template name="handlebnf"/>
-    <xsl:call-template name="chrfmt"/>
+    <xsl:call-template name="chrfmtetc">
+      <xsl:with-param name="define">chrfmt</xsl:with-param>
+      <xsl:with-param name="search">Font (Character) Formatting Properties</xsl:with-param>
+    </xsl:call-template>
+    <xsl:call-template name="chrfmtetc">
+      <xsl:with-param name="define">spec</xsl:with-param>
+      <xsl:with-param name="search">Special Characters</xsl:with-param>
+    </xsl:call-template>
   </out>
 </xsl:template>
 
