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: Re:Re: How to pass the variable node-set as part of javascript


If $xx contains a node tree you can access to any sub-node with the sintax:

<a href = "javascript: usexx('{$xx/anynode}')">xx will be used as param  of
other
xsl</a>

or for an attribute:

<a href = "javascript: usexx('{$xx/@anyattribute}')">xx will be used as
param  of other
xsl</a>



-----Original Message-----
From: Yang [mailto:sfyang@unisvr.net.tw]
Sent: martes, 16 de octubre de 2001 10:53
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] Re:Re: How to pass the variable node-set as part of
javascript


Hi,  Alexander, & Nicholas  ,

Thanks for your help for my posted problem.

However,  when using
<a href = "javascript: usexx('{$xx}')">xx will be used as param  of other
xsl</a>
it  pass only the first value  of the variable.

What I am asking for is to pass the xml fragment of $xx through javascript
argument,

something like in xslt
<xsl:param name="xx" select="/.."/>

Is there  any better way to achieve this goal?

Thanks

SunFu Yang
sfyang@unisvr.net.tw






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

This message and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
No confidentiality or privilege is waived or lost by any wrong transmission.
If you have received this message in error, please immediately destroy it
and kindly notify the sender by reply email.
You must not, directly or indirectly, use, disclose, distribute, print, or
copy any part of this message if you are not the intended recipient.
Opinions, conclusions and other information in this message that do not
relate to the official business of Newknow shall be understood as neither
given nor endorsed by it. 


 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]