Page 1 of 1

Validation against 2 schemas through .nvdl

Posted: Thu Jul 19, 2018 4:10 pm
by Alex18
Good afternoon,
I'm pretty new to xml schemas. What I've done is to validate my xml file (TEI compliant) against, at the same time, an xs schema I wrote (named Sigidoc) and the Epidoc rng schema, through a small .nvdl schema, as follows:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<rules xmlns=""
<namespace ns="">
<validate schema="SigiDoc_schema_LATEST.xsd"/>
<namespace ns="">
<validate schema="tei-epidoc.rng"/>
<namespace ns="">
<validate schema="tei-epidoc.rng"/>
It generally works (I had to add the last namespace, otherwise the

Code: Select all

<TEI xmlns="" xml:lang="en">
TEI namespace in my .xml file wasn't accepted), but it seems that TEI and the Epidoc schema take the upper hand on my own schema (SigiDoc), esp. where I wrote some restrictions (using them as a kind of controlled vocabulary): the restrictions concerning the attributes' values work without problem, but those concerning some elements to be filled in not. For ex.:

Code: Select all

<material xml:lang="en">Lead</material>
'Lead' is included in my xs schema along with 'Gold' and 'Silver': if I write another word (e.g. copper), it is rightly highlighted as an error after validation with SigiDoc schema, but nothing happens after validation with .nvdl.
Is there a mean to amend that?

Many thanks for your help. Kind regards,


Re: Validation against 2 schemas through .nvdl

Posted: Fri Jul 20, 2018 8:30 am
by Radu
Hi Alex,

It's hard to tell what's wrong. Maybe you can email us ( a sample project containing a small test XML document and all required schemas and we can take a look at it.