Page 1 of 1

Very small contrib for XLS2FO

PostPosted: Sun Sep 30, 2012 6:55 am
by vbousquet
Hi,

i needed the ability to transform to PDF a docx package using the customXml tag like this ;
Code: Select all
         <w:customXml w:uri="http://xxx"
            w:element="Test">
            <w:customXmlPr>
               <w:attr w:uri="http://xxx" w:name="remove" w:val="false" />
               <w:placeholder w:val="[xxx]" />
            </w:customXmlPr>
            <w:r>
               <w:t xml:space="preserve">Info text : </w:t>
            </w:r>
         </w:customXml>


The xlst does not support this currently. To get the feature, you just need to add the following templates in it ;
Code: Select all
   <xsl:template match="w:customXml">
      <xsl:apply-templates />
   </xsl:template>

   <xsl:template match="w:customXmlPr" />


which will allow the translation of embedded runs inside the customXml.

Regards and many thanks for this great library,

Vincent

Re: Very small contrib for XLS2FO

PostPosted: Tue Oct 02, 2012 8:37 pm
by jason
Thanks for this; it made it into 2.8.1 :-)