Validating in Eclipse plugin
Are you missing a feature? Request its implementation here.
Validating in Eclipse plugin
Post by neilhart »
I have the following dtd description
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"../catalog/docbookx.dtd" [<!ELEMENT xi:include (xi:fallback?)>
<!ATTLIST xi:include xmlns:xi CDATA #FIXED 'http://www.w3.org/2001/XInclude'>
<!ATTLIST xi:include href CDATA #REQUIRED>
<!ATTLIST xi:include parse (xml|text) 'xml'>
<!ATTLIST xi:include encoding CDATA #IMPLIED>
<!ELEMENT xi:fallback ANY>
<!ATTLIST xi:fallback xmlns:xi CDATA #FIXED 'http://www.w3.org/2001/XInclude'>
]>
When I place and include like:
<section>
<section>
<xi:include href="cvsDirectory.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</section>
</section>
the last </section> has a validation error. Is there any why to not get
this error.
thanks
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"../catalog/docbookx.dtd" [<!ELEMENT xi:include (xi:fallback?)>
<!ATTLIST xi:include xmlns:xi CDATA #FIXED 'http://www.w3.org/2001/XInclude'>
<!ATTLIST xi:include href CDATA #REQUIRED>
<!ATTLIST xi:include parse (xml|text) 'xml'>
<!ATTLIST xi:include encoding CDATA #IMPLIED>
<!ELEMENT xi:fallback ANY>
<!ATTLIST xi:fallback xmlns:xi CDATA #FIXED 'http://www.w3.org/2001/XInclude'>
]>
When I place and include like:
<section>
<section>
<xi:include href="cvsDirectory.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</section>
</section>
the last </section> has a validation error. Is there any why to not get
this error.
thanks
Hi,
You just defined a few more elements, you cannot make a valid document unless you alter the section element declaration to allow xi:include.
You may think that the xi:include should be replaced with the actual content but Oxygen does not currently support XInclude therefore it is treated as any other element with no special semantics.
You can use an external entity instead. You can look at an article on our site that describes exactly this http://www.oxygenxml.com/articles/Worki ... uments.pdf.
Best Regards,
George
You just defined a few more elements, you cannot make a valid document unless you alter the section element declaration to allow xi:include.
You may think that the xi:include should be replaced with the actual content but Oxygen does not currently support XInclude therefore it is treated as any other element with no special semantics.
You can use an external entity instead. You can look at an article on our site that describes exactly this http://www.oxygenxml.com/articles/Worki ... uments.pdf.
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