# HG changeset patch
# User Henning Brinkmann <hbrinkm@openoffice.org>
# Date 1284564145 -7200
# Node ID 396b589d482ae6dd288f9667889e76ae174d20f1
# Parent  a389313caa0e6c22c4b4d3437fa4112e2340df59
rtftok01: added <aprops>

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
@@ -572,13 +572,14 @@
 <xsl:template name="chrfmtetc">
   <xsl:param name="define"/>
   <xsl:param name="search"/>
+  <xsl:param name="number" select="1"/>
   <define>
     <xsl:attribute name="name">
       <xsl:value-of select="$define"/>
     </xsl:attribute>
     <any>
       <xsl:for-each select="key('paragraphs', $search)">
-        <xsl:for-each select="following-sibling::w:tbl[1]">
+        <xsl:for-each select="following-sibling::w:tbl[number($number)]">
           <xsl:for-each select="w:tr">
             <xsl:if test="not(w:trPr/w:tblHeader)">
               <xsl:for-each select="w:tc[1]">
@@ -618,6 +619,11 @@
       <xsl:with-param name="define">spec</xsl:with-param>
       <xsl:with-param name="search">Special Characters</xsl:with-param>
     </xsl:call-template>
+    <xsl:call-template name="chrfmtetc">
+      <xsl:with-param name="define">aprops</xsl:with-param>
+      <xsl:with-param name="search">Associated Character Properties</xsl:with-param>
+      <xsl:with-param name="number">2</xsl:with-param>
+    </xsl:call-template>
   </out>
 </xsl:template>
 
