Re: doc-available not behaving as it should...
Posted by
Erik Bruchez on
Mar 11, 2008; 12:44am
URL: https://discuss.orbeon.com/doc-available-not-behaving-as-it-should-tp37602p37603.html
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.
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. I have entered a bug to track this:
http://forge.objectweb.org/tracker/index.php?func=detail&aid=308820&group_id=168&atid=350207-Erik
On Mar 10, 2008, at 4:12 PM, Eric van der Vlist wrote:
> Hi,
>
> When I run
>
> <xsl:transform xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
> version="2.0">
> <xsl:template match="/">
> <result>
> <xsl:value-of select="doc-available('
http://example.com/foo')
> "/>
> </result>
> </xsl:template>
> </xsl:transform>
>
> with oXygen, I get
>
> <result>false</result>
>
> which is what I am expecting, but if I run the same transformation in
> OrbeonForms (for instance in the XSLT sandbox), I get
>
> <result>true</result>
>
> Why do I get this weird result and how can I get what I am expecting?
>
> Thanks,
>
> 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> ------------------------------------------------------------------------
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/--
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