XML includes
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 1
- Joined: Fri Nov 10, 2017 2:20 pm
XML includes
Post by barretsmile »
Amidst all this dicussion of syntax, I have a question about the XML. (Can you tell I'm doing some experiment code work?)
I'm trying to use XInclude directives within states (inside <task_system_state> tags).
If I put an include directive that points to a missing file (or corrupt file) inside a state, I don't get a parser error.
Include directives right after <monkeyml> continue to give errors for missing files.
I've tried:
<xi:include href="../XmlSharedIncludes/BaseExp.xml" parse="xml">
<xi:include href="../XmlSharedIncludes/BaseExp.xml" parse="xml" xpointer="xpointer(//monkeyml/*)"/>
(and tried with and without the trailing slash before >)
Is this expected?
thanks,
I'm trying to use XInclude directives within states (inside <task_system_state> tags).
If I put an include directive that points to a missing file (or corrupt file) inside a state, I don't get a parser error.
Include directives right after <monkeyml> continue to give errors for missing files.
I've tried:
<xi:include href="../XmlSharedIncludes/BaseExp.xml" parse="xml">
<xi:include href="../XmlSharedIncludes/BaseExp.xml" parse="xml" xpointer="xpointer(//monkeyml/*)"/>
(and tried with and without the trailing slash before >)
Is this expected?
thanks,
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: XML includes
Hi,
The XML parser Oxygen uses does not support evaluating full xpath expressions in xi:include xpointer schemes.
This topic in our user's guide has a few examples with the xpointer syntax that is currently supported:
https://www.oxygenxml.com/doc/versions/ ... clude.html
Basically you can include an element which has a certain xml:id or you can use an xpointer syntax like "/1/2" to include the second child of the root element. You also cannot include multiple elements.
Regards,
Radu
The XML parser Oxygen uses does not support evaluating full xpath expressions in xi:include xpointer schemes.
This topic in our user's guide has a few examples with the xpointer syntax that is currently supported:
https://www.oxygenxml.com/doc/versions/ ... clude.html
Basically you can include an element which has a certain xml:id or you can use an xpointer syntax like "/1/2" to include the second child of the root element. You also cannot include multiple elements.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
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