This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: <xsl:eval/>


Jonathan,

Best to send "how to" questions to the XSL-list@mulberrytech.com
in the future, but I believe what you're looking for can be
done with either:

  generate-id()

or with:

  position()

______________________________________________________________
Steve Muench, Lead XML Evangelist & Consulting Product Manager
BC4J & XSQL Servlet Development Teams, Oracle Rep to XSL WG
Author "Building Oracle XML Applications", O'Reilly
http://www.oreilly.com/catalog/orxmlapp/

----- Original Message ----- 
From: "Jonathan Ball" <diskdaddy@hotmail.com>
To: <xsl-editors@w3.org>
Sent: Sunday, October 29, 2000 3:29 PM
Subject: <xsl:eval/>


Hey there,

I've been poking around and can't find what <xsl:eval>
has been replaced with...

I use it in the following context:

<xsl:for-each select="//REPORT/TESTTAG">  
 <xsl:element name="H2">
    <xsl:attribute name="id">header<xsl:functions>childNumber(this)</xsl:functions></xsl:attribute>
    <xsl:value-of/><xsl:eval>childNumber(this)</xsl:eval>
</xsl:element>
</xsl:for-each>

This is a test program, but basically, at work I need to give unique Id's to DIV and FORM tags
such that 'forms' for different "subjects" can be hidden or shown depending on what the
user chooses...above, I have uniquely numbered simple <H2> tags.  However, the xsl:eval
function has been removed and it doesn't process properly.  What is a new scheme for
obtaining childNumbers?

Thanks.


-JB




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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]