1

Is there anyway to have javascript run when a XSL sheet has been applied to an XML file by Javascript?

I am using a JQuery plugin to apply the sheet to the xml but the javascript that is located inside of the XSL file will not run.

I put the Javascript at the bottom of the file and it still does not run.. I can't seem to get an alert to even run?

2 Answers 2

1

http://jquery.glyphix.com/

This will load the XSL for you and run all Javascript for you. It will not include the new dependencies the file may have but if you include them in the top HTML file you will nto have a problem.

Sign up to request clarification or add additional context in comments.

Comments

0

Where (and how' do you place the output of the XSLT transformation?
Have you tried eval´ing the javascript block after the transformation?

1 Comment

I can't seem to get it to wait until after the HTML is put into my object so I can even evaluate it..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.