schematron not recognizing namespaces
Issues related with the oNVDL implementation of NVDL.
-
- Posts: 3
- Joined: Thu Sep 04, 2008 8:31 pm
schematron not recognizing namespaces
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.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: schematron not recognizing namespaces
Post by sorin_ristache »
Hello,
Can you post the NVDL schema and a sample XML document that you want to validate against that schema? What is the command line that you tried when using onvdl.jar from command line?
Regards,
Sorin
Can you post the NVDL schema and a sample XML document that you want to validate against that schema? What is the command line that you tried when using onvdl.jar from command line?
Regards,
Sorin
-
- Posts: 3
- Joined: Thu Sep 04, 2008 8:31 pm
Re: schematron not recognizing namespaces
Sorry, going to have to eat some crow. I was trying out Oxygen editor for the first time and didn't realize it inserts a processing instruction to associate the schemas and doesn't remove old ones when you change. It was calling the schematron schema first, which is why it appeared to be working (I'd actually forgotten to use a wildcard when attaching the other namespaces in the nvdl script, which is where I lost the elements to).
Let me give oNVDL a ringing endorsement...
Let me give oNVDL a ringing endorsement...

Return to “oNVDL Related Issues”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service