Posted by
Eric van der Vlist on
Mar 11, 2008; 7:06am
URL: https://discuss.orbeon.com/doc-available-not-behaving-as-it-should-tp37602p37607.html
Le lundi 10 mars 2008 à 17:44 -0700, Erik Bruchez a écrit :
> Eric,
>
> I reproduce this.
>
> I think the reason is that loading document '
http://example.com/foo'
> actually succeeds, in a way: the resulting document contains an error
> HTML page converted to XML.
Hmmm, I see...
That means that as a workaround if you know that the page will be the
default 404 page for your favorite web server you can check if a page
with let's say its title is returned...
> We give Saxon our own URI resolver, which works by using the URL
> generator, which happens to ignore reception of a 404 and proceeds
> with parsing the response.
>
> I suppose that this is a bug. Probably that
> URLGenerator.ResourceHandler should be extended to check the status
> code, and throw an exception then.
Yes, that would be more coherent I think.
> I have entered a bug to track this:
>
>
http://forge.objectweb.org/tracker/index.php?func=detail&aid=308820&group_id=168&atid=350207Thanks.
Eric
--
GPG-PGP: 2A528005
Le premier annuaire des apiculteurs 100% XML!
http://apiculteurs.info/------------------------------------------------------------------------
Eric van der Vlist
http://xmlfr.org http://dyomedea.com(ISO) RELAX NG ISBN:0-596-00421-4
http://oreilly.com/catalog/relax(W3C) XML Schema ISBN:0-596-00252-1
http://oreilly.com/catalog/xmlschema------------------------------------------------------------------------
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws