OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re:

[ Lists Home | Date Index | Thread Index ]
  • From: Jiri Jirat <Jiri.Jirat@idoox.com>
  • To: hehangjun <hungenhe@sina.com>
  • Date: Thu, 30 Nov 2000 08:39:17 +0100

Hello,
 I can't recognize the functions index(), context() and childNumber().
Where do they come from? There are no such functions in the XSLT
specification 1.0. Look at the XSLT reference at our site, what
functions
are available:

http://www.zvon.org/xxl/XSLTreference/Output/index.html

Best regards
Jirka



hehangjun wrote:
> 
> 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@sina.com

-- 
 <name firstName="Jirka" surname="Jirat"/>
 <mail>     jiratj@idoox.com  </mail>
 <support>  http://www.zvon.org </support>
 <zvonMailingList> http://www.zvon.org/index.php?nav_id=4
</zvonMailingList>

  • References:



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS