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

RE: Need to use generate-id() or other method?

Subject: RE: Need to use generate-id() or other method?
From: "Kathy Burke" <Kathy_Burke@xxxxxxxxx>
Date: Thu, 24 Apr 2003 09:43:07 -0400
generate id xslt
Thank you, Sundar, but what does the blah blah blah stand in for, for
example?

Another perhaps stupid question...how would I then refer to the @StartTime
and @EndTime for any given step not knowing what the generated id actually
is?

example:

input="button" name=StartTime
some code to update @StartTime for a specific step

Kathy


-----Original Message-----
From: Sundar Shanmugasundaram [mailto:SSHANMUGASUNDARAM@xxxxxxxxxxxxx]
Sent: Thursday, April 24, 2003 12:52 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Need to use generate-id() or other method?


Hi,

Please use 
<xsl:value-of select="generate-id()"/>
like this:

<process_step>
<xsl:attribute name="id">
<xsl:value-of select="generate-id()"/>
</xsl:attribute>
<xsl:attribute name="StartTime">
blah blah blah
</xsl:attribute>
<xsl:attribute name="EndTime">
blah blah blah
</xsl:attribute>
</process_step>

sundar

-----Original Message-----
From: Kathy Burke [mailto:Kathy_Burke@xxxxxxxxx]
Sent: Thursday, April 24, 2003 3:40 AM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject:  Need to use generate-id() or other method?


I have an xml/html form using an xsl stylesheet to create a table for
<process_step> elements. Each <process_step> has a StartTime attribute and
EndTime attribute. There can, of course, be 10 or 50 steps for any given xml
instance.

My XSLT creates an html button for each StartTime and EndTime attribute for
each <process_step>.

Using VB or Javascript I want to add code to capture the system date/time
when the user clicks on the button(s) associated with that <process_step>.
I'm trying to figure out how to refer to each button correctly matching each
step (am I making any sense?).

XSL Question:  I've read about generate-id() though not yet fully
understanding it. How would I dynamically assign matching IDs to each
<process_step> and related attributes for capturing data when generating the
xml/html form from xslt?

Thanks,

Kathy


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

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



 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-2013 All Rights Reserved.