Re: [xsl] Error at element constructor...

Subject: Re: [xsl] Error at element constructor...
From: SEXpeare <sexpeare@xxxxxxxxx>
Date: Mon, 12 Mar 2007 13:48:49 +0100
Thanks again, I have solved the problem with sources and results, i
wanted to store the result in a string so i put the result in a writer
and then write to the string.

2007/3/12, Michael Kay <mike@xxxxxxxxxxxx>:
> xmlEstructurado is a String object initialized with "", I
> forgot to put one code line in my first post, the code is
> this (again):
>                 String xmlEstructurado = "";

The JAXP spec says "use this value as a writeable URI (probably a file
name)." which leaves a lot of discretion to the implementation, but it
certainly doesn't attach any particular meaning to using "" in this context.
Saxon is taking it as a relative filename relative to your current
directory, and that's failing for obvious reasons.

Michael Kay

PS Another illustration of a common problem

THE FIRST LAW OF DEBUGGING: if you can't find the bug after two minutes,
it's because you're looking in the wrong place.

CORROLLARY: if you post the problem to a forum, you will snip the very code
that contains the bug.

The best answer to this is to cut the problem down to a minimum
self-contained repro that illustrates the problem, and then post the whole
of the repro. This also greatly increases the chance that people will help
you in your debugging, because it's much easier to find bugs if you can run
the code, rather than just stare at it.

Current Thread