Ignore:
Timestamp:
06/05/11 01:12:45 (12 months ago)
Author:
jharrop
Message:

Meta works with (near-?) final odgm:SmartArtDataHierarchy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/DrawingML/DiagramLayoutMeta.xslt

    r1528 r1529  
    2929    <gen:template match="/"> 
    3030      <!-- 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"> 
    3432        <gen:comment> <gen:value-of select="name()" /></gen:comment> 
    3533            <xsl:apply-templates select="/dgm:layoutDef/dgm:layoutNode"/> 
     
    9694          <xsl:attribute name="presAssocID">{@id}</xsl:attribute> 
    9795          <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 --> 
    10098          <xsl:apply-templates select="@* | node()"/> 
    10199        </xsl:copy> 
     
    104102        <xsl:copy> 
    105103          <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> 
    107105          <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> 
    109107          <!-- TODO special case for level 1 --> 
    110108          <xsl:apply-templates select="@* | node()"/> 
     
    181179        <xsl:when test="@ptType='nonAsst'"> 
    182180          <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"> 
    185182            <!-- <gen:for-each select="*[local-name()!='asst']"> --> 
    186183              <xsl:apply-templates/> 
Note: See TracChangeset for help on using the changeset viewer.