XInclude appears to break tag insight
Oxygen general issues.
-
- Posts: 2
- Joined: Wed Sep 28, 2005 1:34 am
XInclude appears to break tag insight
Hi,
With oxygen 6.2 (OSX 10.4.2) tag insight does not appear to work anymore when I use XInclude. Please see the following XML:
This way, when I want to add a new species "<species" correctly shows up in the insight popup. However, If I delete the <countriesdb> ...</countriesdb> stuff and instead include it by uncommenting <xi:include... the only thing that shows up in the popup is
/piperdb>
!-- -->
![CDATA[]]>
XInclude support is enabled in preferences and pretty much all tag insight features as well. What's going on here?
Thanks for your help,
Ben
BTW: Great app! I'm on a trial license at the moment, but will definitely buy one, if I get the insight stuff straight again
With oxygen 6.2 (OSX 10.4.2) tag insight does not appear to work anymore when I use XInclude. Please see the following XML:
Code: Select all
<piperdb xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="piperdb-test.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude">
<!--<xi:include href="countriesdb.xml"/>-->
<countriesdb>
<country id="EC" name="Ecuador"/>
</countriesdb>
<species name="achupallasense">
<authors>
<author>Yunck.</author>
</authors>
</species>
</piperdb>
/piperdb>
!-- -->
![CDATA[]]>
XInclude support is enabled in preferences and pretty much all tag insight features as well. What's going on here?
Thanks for your help,
Ben
BTW: Great app! I'm on a trial license at the moment, but will definitely buy one, if I get the insight stuff straight again

-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Ben,
Oxygen does not currently look inside the included document when it offers content completion proposals and the proposals are context sensitive and xi:include does not appear in the schema so the set of proposals after the xi:include is empty.
A possible solution will be to change the schema to allow xi:include in a choice model with the element you want to place inside the included document, countriesdb in your case.
Example:
<xs:element ref="countriesdb" ...
should be changed to
<xs:choice ...>
<xs:element ref="countriesdb">
<xs:element ref="xi:include">
</xs:choice>
Note that if you have a public location of the schema you can change the schema only locally and then map the public location to the local changed copy through an XML Catalog.
I also added a bugzilla entry with this as a feature request and we will handle such cases in future oXygen releases without the need to change the schema.
Best Regards,
George
Oxygen does not currently look inside the included document when it offers content completion proposals and the proposals are context sensitive and xi:include does not appear in the schema so the set of proposals after the xi:include is empty.
A possible solution will be to change the schema to allow xi:include in a choice model with the element you want to place inside the included document, countriesdb in your case.
Example:
<xs:element ref="countriesdb" ...
should be changed to
<xs:choice ...>
<xs:element ref="countriesdb">
<xs:element ref="xi:include">
</xs:choice>
Note that if you have a public location of the schema you can change the schema only locally and then map the public location to the local changed copy through an XML Catalog.
I also added a bugzilla entry with this as a feature request and we will handle such cases in future oXygen releases without the need to change the schema.
Best Regards,
George
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