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/html/docx2xhtmlNG2.xslt

    r1015 r1097  
    303303  <xsl:template match="wp:inline|wp:anchor"> 
    304304   
    305         <xsl:variable name="pictureData" select="./a:graphic/a:graphicData/pic:pic/pic:blipFill"/> 
    306         <xsl:variable name="picSize" select="./wp:extent"/> 
    307         <xsl:variable name="picLink" select="./wp:docPr/a:hlinkClick"/> 
    308         <xsl:variable name="linkDataNode" select="./a:graphic/a:graphicData/pic:pic/pic:blipFill/a:blip"/> 
     305         <xsl:variable name="wpinline" select="."/> 
    309306         
    310         <xsl:copy-of select="java:org.docx4j.model.images.WordXmlPicture.createHtmlImgE20( $wmlPackage, string($imageDirPath), 
    311                         $pictureData, $picSize, $picLink, $linkDataNode)" /> 
     307        <xsl:copy-of select="java:org.docx4j.model.images.WordXmlPictureE20.createHtmlImgE20(  
     308                        $wmlPackage,  
     309                        string($imageDirPath), 
     310                        $wpinline)" /> 
    312311     
    313312  </xsl:template> 
     
    319318                        <xsl:when test="./v:shape/v:imagedata"> 
    320319         
    321                                 <xsl:variable name="shape" select="./v:shape"/> 
    322                                 <xsl:variable name="imageData" select="./v:shape/v:imagedata"/> 
     320                                <xsl:variable name="wpict" select="."/> 
    323321                                 
    324                                 <xsl:copy-of select="java:org.docx4j.model.images.WordXmlPicture.createHtmlImgE10( $wmlPackage, string($imageDirPath), 
    325                                                 $shape, $imageData)" /> 
     322                                <xsl:copy-of select="java:org.docx4j.model.images.WordXmlPictureE10.createHtmlImgE10(  
     323                                                $wmlPackage,  
     324                                                string($imageDirPath), 
     325                                                $wpict)" /> 
    326326                        </xsl:when> 
    327327                        <xsl:otherwise> 
Note: See TracChangeset for help on using the changeset viewer.