Subject: [xsl] [saxon - Help] SystemID always empty String From: Johannes Neubauer <johannes.neubauer@xxxxxxxxxxxxxxxxx> Date: Mon, 18 Feb 2008 01:17:41 +0100 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I've tried to use an XPathException to produce a more verbose output, because when I import one or more stylesheets I can't see, which stylesheet produced a compile time error. I get only something like this:
XPST0017: XPath syntax error at char 40 on line 21 in {...d-first($successor), 'sibli...}: ~ Cannot find a matching 1-argument function named {http://treetransformer.jabc.de/ttfunctions/}find-first()
XPST0081: SequenceType syntax error at char 0 in {xs:string}: ~ Undeclared namespace prefix {xs}
XPST0003: XPath syntax error at char 62 on line 13 in {...group')/@id, '[^a-z0-9]', '...}: ~ expected ")", found "<eof>"
XPST0081: SequenceType syntax error at char 0 in {xs:string*}: ~ Undeclared namespace prefix {xs}
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:
It's a strange uri, but that shouldn't raise any problems, should it? When I add a breakpoint to the getSystemId() method, it is called many times! I had a look at the members of the locator in my IDE and there was a 'root' member of type net.sf.saxon.tree.DocumentImpl with a SystemIdMap with 4 uris with following values:
wfg, Jonny. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHuM6kGaEJacf6i/cRAo6NAJ93mTTckwACn8yFRbWlMPAlViPiMACdELS9 0o7qrx2Ulu+tV7qGETTf2ZA= =BT55 -----END PGP SIGNATURE-----
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XQuery to Report Template, Eliot Kimber | Thread | Re: [xsl] [saxon - Help] SystemID a, Florent Georges |
RE: [xsl] XQuery to Report Template, Michael Kay | Date | Re: [xsl] [saxon - Help] SystemID a, Florent Georges |
Month |