[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Elements of non-actual position

Subject: Re: Elements of non-actual position
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 05 Jun 2002 09:55:05 +0200
Re:  Elements of non-actual position
Michael Leditschke wrote:
> Hi Joerg. Isn't there a level missing here? Shouldn't it be
> <xsl:template match="table/rows/row">
>   <xsl:for-each select="col">
>
> Otherwise pos is the row number not the column number.
>
> Regards
> Michael

Yes, you are right. One level is missing, but it's not col, it's cell:

<xsl:template match="table/rows">
  <xsl:for-each select="row[1]/cell">
    <xsl:variable name="pos" select="position()"/>
    <xsl:if test="/table/cols/col[$pos]/@visible = '1'">
      do what you want
    </xsl:if>
  </xsl:for-each>
</xsl:template>

Regards,


Joerg


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.