Join GitHub today
errorcode on doc-prop-005 #58
Currently test "doc-prop-005" is expected to fail with xqterr:XPTY0004 (which is an XPath error). But this is not the point.
To my reading this pipeline will never compile, because the primary input port of step "identity" is not bound. So XS0032 ("It is a static error if no connection is provided and the default readable port is undefined.") would be right, but miss the point of the test.
What did I miss?
Are we looking at the same test?
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:cx="http://xmlcalabash.com/ns/extensions" name="main" version="3.0"> <p:output port="result"/> <p:variable name="a" select="3 + 4"/> <!-- this should fail, $a isn't a document --> <p:identity> <p:with-input port="source" select="p:document-properties-document($a)/p:document-properties/a"/> </p:identity> </p:declare-step>