Hi,

  I have the following service in [qizx-data]/xqs/test/hello:

    declare variable $param:who as xs:string external;
    <hello>{ $param:who }</hello>

  When I access http://localhost:8080/xqs/test/hello (so without
setting the param ?who=), I get the following error:

    Evaluation: XQST0054 variable $param:who depends on itself
     at line 1 column 17

  But in this case, I think I should rather get an err:XPDY0002,
as explained in XQuery, 4.14 Variable Declaration.

  By the way, the response is then an HTTP 200, with Content-Type
text/x-qizx-error.  As this is not a standard type, the browser
every time ask which application I want to use to view it.  And
using a 200 make it difficult to detect when using the service
programatically.  Why not a 500 with text/plain instead?

  Regards,

-- 
Florent Georges
http://fgeorges.org/



      
 
--
Qizx Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/qizx-support

Reply via email to