xsl-list
[Top] [All Lists]

RE: [xsl] [saxon - Help] SystemID always empty String

2008-02-18 02:12:42
But nothing about the stylesheet the error comes from. So I 
tried to get ~ the systemId:

XPathException exc = (XPathException)ex; 
System.err.println(exc.getLocator().getSystemId());

But I get an empty string. My SAXParsers implements Locator and its
getSystemId() returns:

"xmlgraph://xxxx-xxxx-xxxx-xxxx"


I believe that Saxon will use the SystemId from the JAXP Source object in
preference to the one in the Locator of the SAX XMLReader. You need to
ensure that setSystemId() has been called on the Source representing the
stylesheet file.

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--