Subject: RE: [xsl] Error at element constructor...|
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 12 Mar 2007 12:18:39 -0000
> 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 http://www.saxonica.com/ 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.