[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: [saxon - Help] SystemID always empty String
> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|