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

generate-ID and xsl:number help needed pls

Subject: generate-ID and xsl:number help needed pls
From: Adam Darwin <addarwin@xxxxxxxxxxx>
Date: Wed, 3 Oct 2001 08:50:17 +0100 (BST)
xsl previoussibling
I'm using XML data islands to pull back a load of
data.
It basically has a number of facility types, and for
each one it can have a number of facilities.

i need to be able to uniquely identify a couple of the
fields to pass to a javascript function.  I have tried
generate-id() and xsl:number to no avail, but i'm sure
there must be a way of using one of them.

I currently have the hideous work around below using
previous sibling

<input type="hidden" datafld="Facility_Name" >
  <xsl:attribute name="name">
    facname!!!!NEED SOMETHING HERE TO UNIQUELY
IDENTIFY"
  </xsl:attribute>
</input>

<input type="hidden" datafld="Facility_ID">
    facID!!!!NEED SOMETHING HERE TO UNIQUELY IDENTIFY"
</input>

<a style="COLOR:#006699;FONT-WEIGHT:bold;
FONT-SIZE:8pt; FONT-FAMILY:Tahoma">
  <xsl:attribute name="onClick">
    showDetails(eval("Data" + 
!!!Hideous workaround!!!
this.previousSibling.value),this.previousSibling.previousSibling.value)
  </xsl:attribute>

all help is greatly appreciated

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

 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.