I have a webpage that uses XSLT conversion (Java 6). The xls file (basic xsl) refers to a DOCTYPE DTD, such as:
Basic.xsl When I came to the controller endpoint that used this argument using an integration test, then it is running fine. But when the same end point is hit by the filer, I get an error: Error: 'C: \ Tool \ Eclipse \ src \ com \ abc \ xslt \ MyXslt.dtd (System can not find the path specified) 'Incorrect error:' stylesheet can not be compiled ' MyXslt.dtd resides in workspace detection. So here's the full path - C: \ WORKSSPACE \ src \ com \ abc \ xslt \ MyXslt.dtd the rest of the way What do I have to do to get that DTD can be found? Edit: Some posters suggested giving full path. This will not work because the app will be deployed on the VAS server (not my local machine). I can not provide a full path to different servers, There may be a way in the Java custom URI resolver, some settings which may cause referenced DTD to be resolved relative to the current location Do not be relieved and OT over Eclipse Route You can either change it on the absolute path, such as
& lt ;! DOCTYPE stylesheet system "MyXslt.dtd" & gt; means that MyXslt.dtd is specified as a relative path - relative to the XSLT file. As your XSLT C: \ device \ eclipse \ src \ com \ abc \ xslt \ is in the directory, DTD will also be searched in that directory. & lt ;! DOCTYPE stylesheet system "C: \ WORKSSPACE \ src \ com \ abc \ xslt \ MyXslt.dtd" & gt; or replace the location of your DTD file that the relative path in the XSLT is understandable.
No comments:
Post a Comment