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

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

Hi,

Using: saxon-b-9.0.0.2 for Java.

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:

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

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:

["", null, null, null]

Thanks!

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