Ignore:
Timestamp:
02/27/10 11:30:45 (2 years ago)
Author:
jharrop
Message:

Use revised WordXmlPicture? stuff in the various xslt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/convert/out/pdf/viaXSLFO/docx2fo.xslt

    r1026 r1097  
    485485  <xsl:template match="wp:inline|wp:anchor"> 
    486486   
    487         <xsl:variable name="pictureData" select="./a:graphic/a:graphicData/pic:pic/pic:blipFill"/> 
    488         <xsl:variable name="picSize" select="./wp:extent"/> 
    489         <xsl:variable name="picLink" select="./wp:docPr/a:hlinkClick"/> 
    490         <xsl:variable name="linkDataNode" select="./a:graphic/a:graphicData/pic:pic/pic:blipFill/a:blip"/> 
     487        <xsl:variable name="wpinline" select="."/> 
    491488         
    492         <xsl:copy-of select="java:org.docx4j.model.images.WordXmlPicture.createXslFoImgE20( $wmlPackage, string($imageDirPath), 
    493                         $pictureData, $picSize, $picLink, $linkDataNode)" /> 
     489        <xsl:copy-of select="java:org.docx4j.model.images.WordXmlPicture.createXslFoImgE20(  
     490                        $wmlPackage, string($imageDirPath), 
     491                        $wpinline)" /> 
    494492     
    495493  </xsl:template> 
     
    501499                <xsl:when test="./v:shape/v:imagedata"> 
    502500 
    503                         <xsl:variable name="shape" select="./v:shape"/> 
    504                         <xsl:variable name="imageData" select="./v:shape/v:imagedata"/> 
     501                <xsl:variable name="wpict" select="."/> 
    505502                         
    506                         <xsl:copy-of select="java:org.docx4j.model.images.WordXmlPicture.createXslFoImgE10( $wmlPackage, string($imageDirPath), 
    507                                         $shape, $imageData)" /> 
     503                        <xsl:copy-of select="java:org.docx4j.model.images.WordXmlPicture.createXslFoImgE10(  
     504                        $wmlPackage, string($imageDirPath), 
     505                        $wpict)" /> 
    508506                </xsl:when> 
    509507                <xsl:otherwise> 
Note: See TracChangeset for help on using the changeset viewer.