schematron not recognizing namespaces
Posted: Thu Sep 04, 2008 9:15 pm
Any idea why a schematron schema called from an nvdl script cannot see other namespaces when one has been declared on the root? For example:
<meta xmlns="http://www.xxx.com/meta">
<time xmlns="http://www.xxx.com/time"/>
</meta>
No matter what I've tried, there is no way to access the time element (even using context="*" on a rule and printing the name of every element only prints elements in the same namespace as the root).
Everything works fine when I run the nvdl script from inside Oxygen Editor, but when I use oNVDL from a command prompt in Windows (XP SP2, Java 1.6.0_07) it fails to recognize child elements with their own namespace.
<meta xmlns="http://www.xxx.com/meta">
<time xmlns="http://www.xxx.com/time"/>
</meta>
No matter what I've tried, there is no way to access the time element (even using context="*" on a rule and printing the name of every element only prints elements in the same namespace as the root).
Everything works fine when I run the nvdl script from inside Oxygen Editor, but when I use oNVDL from a command prompt in Windows (XP SP2, Java 1.6.0_07) it fails to recognize child elements with their own namespace.