March 15, 200619 yr 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?
March 15, 200619 yr Did you use comment tags between ? If yes: You can't use these, because they are comment tags for XSLT. Use and instead.
March 16, 200619 yr Author 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:
March 16, 200619 yr 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
March 21, 200619 yr Author 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.
March 21, 200619 yr Author Putting a reference to a separate file didn´t change anything, still doesn´t execute. /Mattias
Create an account or sign in to comment