Betere vermelding van errors in de input-xml
svn path=/Website/trunk/; revision=35142
This commit is contained in:
@@ -24,7 +24,7 @@ function STR2Stream(xmlstr, xslfile, Stream, params)
|
||||
{
|
||||
var myErr = xsldoc.parseError;
|
||||
__Log("XML2STR3 Error in stylesheet ("+xslfile+"): " + myErr.reason);
|
||||
Response.Write ("<html><body><b>Error in stylesheet ("+xslfile+"):<br></b>" + myErr.reason + "</body></html>");
|
||||
Response.Write ("<html><body><b>Error in stylesheet ("+xslfile+"):</b><br>" + myErr.reason + "</body></html>");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -34,10 +34,11 @@ function STR2Stream(xmlstr, xslfile, Stream, params)
|
||||
var xmldoc = new ActiveXObject("Msxml2.DOMDocument.6.0");
|
||||
xmldoc.async = false;
|
||||
xmldoc.loadXML(xmlstr);
|
||||
if (xmldoc.parseError.errorCode != 0) {
|
||||
if (xmldoc.parseError.errorCode != 0)
|
||||
{
|
||||
var myErr = xmldoc.parseError;
|
||||
__Log("XML2STR3 Error in xmlfile: " + myErr.reason);
|
||||
return ("<html><body><b>Error in xmlfile:<br></b>" + myErr.reason + "</body></html>");
|
||||
Response.Write ("<html><body><b>Error in xmlfile:</b><br>" + myErr.reason + "</body></html>");
|
||||
} else {
|
||||
xslproc = xslt.createProcessor();
|
||||
xslproc.input = xmldoc;
|
||||
|
||||
Reference in New Issue
Block a user