Skip to content

Instantly share code, notes, and snippets.

@dmj
Created February 9, 2017 17:09
Show Gist options
  • Save dmj/8d7ff4a471088dbd20521facd6a2b03b to your computer and use it in GitHub Desktop.
Save dmj/8d7ff4a471088dbd20521facd6a2b03b to your computer and use it in GitHub Desktop.
NullPointerException w/ nested includes in RelaxNG compact syntax
<p:declare-step version="1.0" xmlns:p="http://www.w3.org/ns/xproc">
<p:validate-with-relax-ng>
<p:input port="source">
<p:inline>
<foobar/>
</p:inline>
</p:input>
<p:input port="schema">
<p:data href="schema0.rnc" content-type="text/plain"/>
</p:input>
</p:validate-with-relax-ng>
<p:sink/>
</p:declare-step>
include "schema1.rnc"
include "schema2.rnc"
start = element foobar { empty }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment