oxygen giving incorrect syntax error for xproc?
Posted: Mon Jul 23, 2018 4:05 pm
Hello,
I am using Roger Costello's XProc tutorial. Things were going fine until I got to his examples for validate-with-schematron. Oxygen is showing an error for the parameters ports.
The error message is: attribute "sequence" not allowed here; expected attribute "select", "use-when", "xml-base" or xml:id" or an attribute from another namespace.
I looked at the specification on the w3 site and it shows the parameters port as having an attribute called "kind" (not "sequence"). When I substitute "kind" for "sequence", I get a similar error. I don't know if "kind" is a true syntax error or if oXygen is making a mistake. I'm also not sure how to find out.
Thanks for any guidance you can give me.
Regards,
Paten
I am using Roger Costello's XProc tutorial. Things were going fine until I got to his examples for validate-with-schematron. Oxygen is showing an error for the parameters ports.
Code: Select all
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
<p:input port="source">
<p:document href="document.xml"/>
</p:input>
<p:output port="result">
<p:pipe step="checkReservedWords" port="result"/>
</p:output>
<p:validate-with-schematron phase="classificationValidation" name="checkClassifications">
<p:input port="schema">
<p:document href="check-classifications-and-reserved-words.sch"/>
</p:input>
<p:input port="parameters" sequence="true">
<p:empty/>
</p:input>
</p:validate-with-schematron>
<p:validate-with-schematron phase="reservedWordValidation" name="checkReservedWords">
<p:input port="source">
<p:pipe step="checkClassifications" port="result" />
</p:input>
<p:input port="schema">
<p:document href="check-classifications-and-reserved-words.sch"/>
</p:input>
<p:input port="parameters" sequence="true">
<p:empty/>
</p:input>
</p:validate-with-schematron>
</p:declare-step>
I looked at the specification on the w3 site and it shows the parameters port as having an attribute called "kind" (not "sequence"). When I substitute "kind" for "sequence", I get a similar error. I don't know if "kind" is a true syntax error or if oXygen is making a mistake. I'm also not sure how to find out.
Thanks for any guidance you can give me.
Regards,
Paten