xinclude/relaxNG validation
Posted: Thu Jul 08, 2010 9:53 pm
Hi,
I'd like to use xinclude in a main file and get validation (with RelaxNG) in the subfiles. Is this possible? That is:
main.xml:
sub.xml:
When I edit sub.xml, I'd like to get validation as if I am in the main.xml at the position where the xinclude is (using RelaxNG XML syntax without schematron). I know that this can be ambiguous, but perhaps there are any strategies how to handle this situation?
Thanks
Patrick
I'd like to use xinclude in a main file and get validation (with RelaxNG) in the subfiles. Is this possible? That is:
main.xml:
Code: Select all
<root>
<foo xmlns:xi="http://www.w3.org/2001/XInclude" >
<xi:include href="sub"/>
</foo>
</root>
Code: Select all
<bar>
<sometag />
</bar>
Thanks
Patrick