Ignore:
Timestamp:
03/03/10 13:20:33 (2 years ago)
Author:
jharrop
Message:

Copy attributes over!
Relaxed conditions under which bind is performed. Not yet clear what these conditions should actually be.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/model/datastorage/bind.xslt

    r846 r1101  
    4848        </xsl:choose>     
    4949  </xsl:template> 
     50 
     51  <xsl:template match="@*"  mode="bind"> 
     52    <xsl:copy> 
     53      <xsl:apply-templates select="@*"/> 
     54    </xsl:copy> 
     55  </xsl:template> 
    5056   
    5157  <xsl:template match="w:*" mode="bind">   
     
    5662                        select="java:org.docx4j.openpackaging.parts.CustomXmlDataStoragePart.log('In w:* bind')"/--> 
    5763                    <xsl:copy> 
    58                       <xsl:apply-templates mode="bind"> 
     64                      <xsl:apply-templates select="@*|node()" mode="bind"> 
    5965                        <xsl:with-param name="storeItemID"  select="$storeItemID" /> 
    6066                                <xsl:with-param name="xpath"  select="$xpath" /> 
     
    7076                <!-- >xsl:variable name="dummy"  
    7177                        select="java:org.docx4j.openpackaging.parts.CustomXmlDataStoragePart.log('In w:r bind')"/--> 
     78 
     79                                <!-- TEMP: insert a new w:r, containing result --> 
     80                                <w:r> 
     81                                        <w:t><xsl:value-of 
     82                                                select="java:org.docx4j.openpackaging.parts.CustomXmlDataStoragePart.getXPath( 
     83                                                                        $customXmlDataStorageParts, 
     84                                                                        $storeItemID, 
     85                                                                        $xpath, 
     86                                                                        $prefixMappings)" /></w:t> 
     87                                </w:r> 
     88<!-- INSTEAD OF 
    7289                <xsl:choose> 
    7390                        <xsl:when test="w:rPr/w:rStyle/@w:val='Entry' or w:rPr/w:rStyle/@w:val='PlaceholderText'"> 
     
    89106                        </xsl:otherwise> 
    90107                </xsl:choose> 
     108                --> 
    91109  </xsl:template> 
    92110    
Note: See TracChangeset for help on using the changeset viewer.