The error message suggests that OXF is trying to read and parse your JavaScript file. You may want to check that your setting for .js extensions in web.xml is correct. Also try to look at the page source in your Web browser and make sure the path you generated for the JavaScript file is correct.
-Erik
--- Prateek Mittal <[EMAIL PROTECTED]> wrote: > Hi Erik, > I am trying to include external javascript file in > my final xsl file (in > pipeline). I use fallowing code > > <script language="javascript" > type="text/javascript" > src="javascripts/testing.js"></script> > > 'javascripts' folder is in 'WEB_INF/resources'. > > I modified 'fix-paths-absolute.xpl' to add > 'base-path' in src attribute of > script tag. I also added new servlet-mapping for .js > files in web.xml. It's > still not working. > > Am I missing any changes somewhere? > > This is the error I am getting.. > > ProcessorServlet] Exception at > oxf:/javascripts/testing.js, line 1, column > 21 > > org.orbeon.oxf.common.ValidationException: > oxf:/javascripts/testing.js, line > 1, column 21: Content is not allowed in prolog. > > at > org.orbeon.oxf.pipeline.processors.URLGenerator$1.readImpl(URLGenerator.java > :97) > _______________________________________________ > oxf-users mailing list > [EMAIL PROTECTED] > http://mail.orbeon.com/mailman/listinfo/oxf-users
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
