Changeset 1529 for trunk/docx4j/src/main/java/org/docx4j/openpackaging
- Timestamp:
- 06/05/11 01:12:45 (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/DrawingML/DiagramLayoutMeta.xslt
r1528 r1529 29 29 <gen:template match="/"> 30 30 <!-- Don't apply to the root of our list --> 31 <!-- <gen:for-each select="/dh:SmartArtDataHierarchy/dh:list/dh:listItem/dh:list"> --> 32 <!-- something weird when we use namespaces here, so don't --> 33 <gen:for-each select="*/*[local-name()='list']/*/*[local-name()='list']"> 31 <gen:for-each select="/dh:SmartArtDataHierarchy/dh:list/dh:listItem/dh:list"> 34 32 <gen:comment> <gen:value-of select="name()" /></gen:comment> 35 33 <xsl:apply-templates select="/dgm:layoutDef/dgm:layoutNode"/> … … 96 94 <xsl:attribute name="presAssocID">{@id}</xsl:attribute> 97 95 <xsl:attribute name="presStyleCnt">{count(//*)-1}</xsl:attribute><!-- FIXME when image rep is finalised --> 98 <xsl:attribute name="presStyleIdx">{count(preceding:: *[local-name='listItem']) + count(ancestor::*[local-name='listItem'])}</xsl:attribute>99 <xsl:attribute name="depth">{count(ancestor:: *[local-name='listItem'])}</xsl:attribute> <!-- not needed -->96 <xsl:attribute name="presStyleIdx">{count(preceding::dh:listItem) + count(ancestor::dh:listItem)}</xsl:attribute> 97 <xsl:attribute name="depth">{count(ancestor::dh:listItem)}</xsl:attribute> <!-- not needed --> 100 98 <xsl:apply-templates select="@* | node()"/> 101 99 </xsl:copy> … … 104 102 <xsl:copy> 105 103 <xsl:attribute name="presAssocID">{@id}</xsl:attribute> 106 <xsl:attribute name="presStyleCnt">{count(../ *[local-name='listItem'])}</xsl:attribute>104 <xsl:attribute name="presStyleCnt">{count(../dh:listItem)}</xsl:attribute> 107 105 <xsl:attribute name="presStyleIdx">{position()-1}</xsl:attribute> 108 <xsl:attribute name="depth">{count(ancestor:: *[local-name='listItem'])}</xsl:attribute>106 <xsl:attribute name="depth">{count(ancestor::dh:listItem)}</xsl:attribute> 109 107 <!-- TODO special case for level 1 --> 110 108 <xsl:apply-templates select="@* | node()"/> … … 181 179 <xsl:when test="@ptType='nonAsst'"> 182 180 <gen:template name="{@name}"> 183 <gen:for-each select="*/*[local-name()='listItem']"> 184 <!-- <gen:for-each select="dh:list/dh:listItem"> --> 181 <gen:for-each select="dh:list/dh:listItem"> 185 182 <!-- <gen:for-each select="*[local-name()!='asst']"> --> 186 183 <xsl:apply-templates/>
Note: See TracChangeset
for help on using the changeset viewer.
