dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: xslt and xml

  1. #1
    Join Date
    Mar 2006
    Posts
    172

    xslt and xml

    Hi all!

    I have an xml file with a node that holds a comma separated list of function parameters. I need to feed those parameters into an onclick event call to a function.

    I can't find anything that tells me how to construct a link that includes an onclick event and, further, how I can pass the parameter node data from my xml file into the function attached to the onclick event. I think I might have to use concat but I'm not sure...

    Can anyone point me in the right direction?

    Thanks,
    CFH

  2. #2
    Join Date
    May 2007
    Posts
    288
    How would you do the same in javascript? Guessing:
    <div onclick="functionName('arg1value')">

    You'd probably have something like
    <div onclick="functionName({xpath/tonode/value})">

    It's probably easier to parse the string in javascript then xslt.

  3. #3
    Join Date
    Mar 2006
    Posts
    172
    Quote Originally Posted by jkmyoung View Post
    How would you do the same in javascript? Guessing:
    <div onclick="functionName('arg1value')">

    You'd probably have something like
    <div onclick="functionName({xpath/tonode/value})">

    It's probably easier to parse the string in javascript then xslt.
    Thanks for the reply.

    That's pretty much what I was trying to do, but being new to xslt I had a mistake because I didn't fully understand the use of attributes and the @ symbol.

    Anyway, your post helped me narrow down the issue to a syntax error.

    Thanks,
    CFH

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles