NVDL and nested fragments
Posted: Fri Aug 28, 2015 1:28 am
IN a couple of projects, I'm producing documents with content from multiple namespaces, usually as part of a larger processing chain. For instance, I might have a TEI document which inside its body element contains an XHTML table:
I'd like to use NVDL to validate these sorts of document, and I can see how to set up validation for the TEI namespace and the NVDL namespace; what I can't figure out (maybe it's impossible) is how to tell the validation action for the XHTML namespace that the root element for the purposes of validation should be <xhtml:table>, not <xhtml:html>, which is what the XHTML schema expects. What I'd like to do is validate the table and its descendants according to the XHTML schema, but on the basis that it's a fragment and not a complete document, so its root element is not <xhtml:html>.
Is this feasible with NVDL? If so, how can it be done?
Code: Select all
[...]
<tei:text>
<tei:body>
<tei:div>
<xhtml:table>
....
</xhtml:table>
</tei:div>
</tei:body>
</tei:text>
[...]
Is this feasible with NVDL? If so, how can it be done?