Skip to content

Instantly share code, notes, and snippets.

@rdeltour
Created June 29, 2012 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdeltour/3018018 to your computer and use it in GitHub Desktop.
Save rdeltour/3018018 to your computer and use it in GitHub Desktop.
Repro for ndw/xmlcalabash1 issue #51

Try this in the issue51 directory:

calabash -U org.xmlresolver.Resolver test.xpl

It returns:

SEVERE: com.xmlcalabash.core.XProcException: Error loading schema

<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
<include href="./sub.rng"/>
</grammar>
<?xml version="1.0" encoding="UTF-8"?>
<grammar
xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="doc"><empty/></element>
</start>
</grammar>
<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><doc/></p:inline>
</p:input>
<p:input port="schema">
<p:document href="./schema/main.rng"/>
</p:input>
</p:validate-with-relax-ng>
<p:sink/>
</p:declare-step>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment