Hello,
Has anyone gotten this error before?
I was thrilled to discover the Apache Ant build.xml file support for my Schematron .sch file validations!
I ran several validations successfully but now there is this error I have not gotten past in a couple of days now!
BUILD FAILED
***\build.xml:25: The validator could not be initialized.
Line 25 opens the <Schematron> element. It's as if my editor (Oxygen) does not recognize this as valid. It underlines it in red.
Build.xml code:
<target name="validate" description="codespace">
<schematron schema="SchemaUcore.sch" phase="codespace" failonerror="false">
<fileset dir="../instances" includes="*.xml"/>
</schematron>
</target>
<target name="what" description="what" depends="validate">
<schematron schema="SchemaUcore.sch" phase="what" failonerror="false">
<fileset dir="result.xml"/>
</schematron>
</target>
SchemaUcore.sch code:
<iso:phase id="codespace">
<iso:active pattern="validCodespace"/>
</iso:phase>
<iso:phase id="what">
<iso:active pattern="whatCode"/>
</iso:phase>
<iso:pattern id="validCodespace">
<iso:rule context="ucore:What" id="Vcodespace">
<iso:report test="codespace = 'urn:gov:ucore:2.0'"/>
<iso:include href="../ucore/entity-type-list.xml, ../ucore/event-type-list.xml"/>
</iso:rule>
</iso:pattern>
<!-- Validate code value agains event & entity xml docs -->
<iso:pattern id="whatCode" see="../ucore/entity-type-list.xml, ../ucore/event-type-list.xml">
<iso:rule context="ucore:What" id="Uwhat">
<iso:report test="code =| ucore:entity">Invalid 'code' value.</iso:report>
</iso:rule>
</iso:pattern>
Can anyone offer any help?
Respectfully,
Catherine "Kate" Walsh
Multi-Discipline Systems Engineer
Tel: (757) 967-8007
Cell: (757) 642-7568
Email: cwalsh at mitre.org<mailto:cwalsh at mitre.org>
The MITRE DoD C3I Federally Funded Research and Development Center
Working in the Public Interest
-But Not for Profit
www.MITRE.org<http://www.mitre.org/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eccnet.com/pipermail/schematron/attachments/20090107/74d4426b/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Walsh, Catherine.vcf
Type: text/x-vcard
Size: 416 bytes
Desc: Walsh, Catherine.vcf
Url : http://www.eccnet.com/pipermail/schematron/attachments/20090107/74d4426b/attachment.vcf