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]

pass a value from html to xsl


Hi, I have spent some time on this problem and I hope someone can share your
experience with me.

I want to pass a value from html form to xsl. For example, in a javascript
function, I got the value of selectedIndex from a drop down list, then I
want to pass this value to xsl:variable, and to pass this variable to xsl to
get the corresponding position of element in xml. I did like this, but it
doesn't work.

function getValue() {
	with(document.formName){
		<xsl:variable name="detailPosition"
select="dropDownList.selectedIndex"/>
	}
}

Does anyone know if there has any possibility to do like this?
thanks for your information in advance.
Ying


 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]