[Home] [By Thread] [By Date] [Recent Entries]

  • From: hehangjun <hungenhe@s...>
  • To: "xml-dev@l..." <xml-dev@l...>
  • Date: Thu, 30 Nov 2000 11:59:41 +0800

hello,everyone

<TABLE BORDER="1">
  <xsl:for-each select="products/product">
    <xsl:if expr="(childNumber(this) % 2) == 1">
      <TR>
        <TD><xsl:value-of /></TD>
        <TD><xsl:value-of select="../product[index() $gt$ context()!index()][0]"/></TD>
      </TR>
    </xsl:if>
  </xsl:for-each>
</TABLE>

anyone knows context() and index() and childNumber() mean?


            hehangjun
            hungenhe@s...


  • Follow-Ups:
    • Re:
      • From: Jiri Jirat <Jiri.Jirat@i...>
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member