machaut Posted March 15, 2006 Posted March 15, 2006 My Javascripts that I have put in xslt stylesheets don´t execute. I have put them between the tags. Does anyone have an idea why this doesn´t work?
Garry Claridge Posted March 15, 2006 Posted March 15, 2006 Can you see any errors in the "Javascript Consol" in Safari? Garry
Martin Brändle Posted March 15, 2006 Posted March 15, 2006 Did you use comment tags between ? If yes: You can't use these, because they are comment tags for XSLT. Use and instead.
machaut Posted March 16, 2006 Author Posted March 16, 2006 Well, yes, since they are part of the script. If I change or delete them the page won´t load at all. Here´s the script:
Martin Brändle Posted March 16, 2006 Posted March 16, 2006 Maybe because of the < in this line if (year < 2000) ... ? < would be interpreted as start of a new tag. What you can do is to move the the script out of the XSLT file, e.g. use as an external file that is included and referenced by
machaut Posted March 21, 2006 Author Posted March 21, 2006 Took me a while to enable the debug-menu in Safari... No, no errors is displayed in the console when loading the page. It should simply return the proper date and year, but no result at all is displayed.
machaut Posted March 21, 2006 Author Posted March 21, 2006 Putting a reference to a separate file didn´t change anything, still doesn´t execute. /Mattias
Martin Brändle Posted March 21, 2006 Posted March 21, 2006 Does XSLT also work without the JavaScript code?
machaut Posted April 3, 2006 Author Posted April 3, 2006 Yes, the page works fine, it´s just that the javascript doesn´t execute...
Recommended Posts
This topic is 6801 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now