Thread: div hiererchy
View Single Post
  #2 (permalink)  
Old February 26th, 2007, 11:35 AM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Something like

<xsl:template match="child">
 <div><table><tr><td>
 <img src="images/blank.png"/>
 <img src="images/blank.png"/>
 <xsl:for-each select="preceding-sibling::*">
   <img src="images/blank.png"/>
 </xsl:for-each>
 <xsl:value-of select="."/>
</xsl:template>

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote