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

Subject: RE: [xsl] [saxon - Help] SystemID always empty String
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 18 Feb 2008 09:12:12 -0000
> 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/

Current Thread