Javascript in XSL that is loaded by Javascript
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 bo开发者_StackOverflowttom of the file and it still does not run.. I can't seem to get an alert to even run?
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.
Where (and how' do you place the output of the XSLT transformation?
Have you tried eval´ing the javascript block after the transformation?
精彩评论