Reputation: 678
I want to override a defined let variable in schematron files from the root schematron. Is that possible? I must pass a value from the root schematron file to the child one but the child one has the one that is defined. I have to control its value from the root_schematron.xml. The other schema files are published ones and I must not change its content. Any help will be appreciated.
root_schematron.xml
<?xml version="1.0" encoding="UTF-8"?>
<sch:schema xmlns="http://purl.oclc.org/dsdl/schematron"
xmlns:sch="http://purl.oclc.org/dsdl/schematron" >
<sch:extends href="UBL-TR_Main_Schematron.xml"/>
<let name="type" value="'earchive'"/>
</sch:schema>
UBL-TR_Main_Schematron.xml
<?xml version="1.0" encoding="UTF-8"?>
<sch:schema xmlns="http://purl.oclc.org/dsdl/schematron"
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
xmlns:sh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader"
xmlns:ef="http://www.efatura.gov.tr/envelope-namespace">
<sch:include href="UBL-TR_Codelist.xml#codes"/>
<sch:include href="UBL-TR_Common_Schematron.xml#abstracts"/>
<let name="type" value="'efatura'"/>
</sch:schema>
Upvotes: 1
Views: 70