Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing values of XSL parameter onClick 1

Status
Not open for further replies.

birney29

Programmer
Oct 11, 2001
140
GB
i need to be able to change the value of an XSL parameter when a button is clicked. any idea how to do this?

thanks! Kenneth Birney
User Interface Programmer
Scottish Police
 
Hi Kenneth,

The problem is that according to your previous posts you want to perform a client-side transformation and therefore you use the ....WD-xsl namespace.

This namespace doesn't support parameters as input for your stylesheet, thus you won't be able to 'communicate' with your stylesheet.

I guess you use MSIE as platform, so why don't you use javascript to solve your problem?

Just load your xml in a domdocument object and use the 'SelectSingleNode' method to select the person node from your xml you need.

Good luck!

Jordi Reineman
Cap Gemini Ernst & Young
 
ive changed the name space to one which allowsn me to use parameters. i now have aparameter called idNumber and only those people with the id number get selected. now i need tobe able to increment this parameter on click Kenneth Birney
User Interface Programmer
Scottish Police
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top