|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Contents of a <div> into an AVT?
that just gives me 'this.id'. If I put a number in the script, it works
fine. I need it to be dynamic based on the <step> element's xsl:number.
Using the <xsl:variable> and <div> as I indicated, gives me the correct html
EXCEPT when referring to the {id} within the script. Perhaps I took the
wrong approach all together?
Hope I'm not being dense, again.
Kat
-----Original Message-----
From: Marty McKeever [mailto:marty.mckeever@xxxxxxxxxx]
Sent: Wednesday, August 06, 2003 1:58 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: Contents of a <div> into an AVT?
It is a javascript issue, you dont need the AVT in your argument. try the
"this" keyword instead:
onclick="Javascript:newWin('here is where i need the above', this.id)"
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Kathy Burke
> Sent: Wednesday, August 06, 2003 12:07 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Contents of a <div> into an AVT?
>
>
> Hello. I'm sure I'll phrase this incorrectly..but here goes.
>
> building html table, my xsl contains:
>
> <xsl:variable name="id">
> <xsl:number level="multiple" count="step" format="1.1">
> </xsl:variable>
>
> <div id="Step_{$id}">
> <xsl:value-of select="$id"/>
> </div>
>
> This results as desired:
>
> <div id="Step_2.1 ">2.1 </div>
>
>
> My question is: how to get either the div id ("Step_2.1") or div contents
> ("2.1") into a script parameter?
>
> In my html, I have onclick="Javascript:newWin('here is where i need the
> above', '{para}')"
>
> The {para} give me the content of the <step> correctly.
>
> I though {id} would work, but it remains blank.
>
> Any clues?
>
> Thanks.
>
> Kat
>
>
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








