XInclude validation problem
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 36
- Joined: Tue Apr 05, 2005 10:52 am
XInclude validation problem
Hi,
I have a DocBook DTD 4.4 article with XIncludes and I cannot validate it. Is anything wrong with my Oxygen 7/WinXP configuration or with my source file?
I get the following messages:
The XPath expression is correct, I have checked it directly in introduction.xml and it returns the required elements.
Thanks,
-Zby
I have a DocBook DTD 4.4 article with XIncludes and I cannot validate it. Is anything wrong with my Oxygen 7/WinXP configuration or with my source file?
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY % xinclude SYSTEM "../../../../xinclude.mod" >
%xinclude;
]>
<article>
<title>Release Notes</title>
<section>
<title>Getting help</title>
<xi:include href="introduction.xml"
xpointer="xpointer(/preface/section[@id='getting_help']/*)"
xmlns:xi="http://www.w3.org/2001/XInclude" />
</section>
</article>
How can I fix it?Description: W SchemeUnsupported: The XPointer scheme 'xpointer' is not supported.
Description: W Include operation failed, reverting to fallback. Resource error reading file as XML (href='introduction.xml'). Reason: XPointer resolution unsuccessful.
Description: F An 'include' failed, and no 'fallback' element was found.
The XPath expression is correct, I have checked it directly in introduction.xml and it returns the required elements.
Thanks,
-Zby
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Zby,
As the error message says the xpointer scheme is not supported. This is when you validate in oXygen with Xerces (that is the default validate action). For more details see:
http://xerces.apache.org/xerces2-j/faq- ... html#faq-8
You may try to use a shorthand pointer instead, something like
<xi:include href="introduction.xml" xpointer="getting_help" xmlns:xi="http://www.w3.org/2001/XInclude" />
You also have the option to validate with other processors like LIBXML for instance which is preconfigured in oXygen and that may handle the xpointer sheme. If you decide for that then I think you need to use also XSLTProc as the XSLT processor in order to get the XInclude properly processed.
Best Regards,
George
As the error message says the xpointer scheme is not supported. This is when you validate in oXygen with Xerces (that is the default validate action). For more details see:
http://xerces.apache.org/xerces2-j/faq- ... html#faq-8
You may try to use a shorthand pointer instead, something like
<xi:include href="introduction.xml" xpointer="getting_help" xmlns:xi="http://www.w3.org/2001/XInclude" />
You also have the option to validate with other processors like LIBXML for instance which is preconfigured in oXygen and that may handle the xpointer sheme. If you decide for that then I think you need to use also XSLTProc as the XSLT processor in order to get the XInclude properly processed.
Best Regards,
George
-
- Posts: 36
- Joined: Tue Apr 05, 2005 10:52 am
Well, I understand the error message. My question is what XML processor should I use to validate XIncludes with xpointer="xpointer()" scheme. That is, what XML processor (if any) supports this scheme if Xerces doesn't?
My question is a reference to Bob Stayton's book, exactly to the section on processing modular DocBook files (http://sagehill.net/docbookxsl/Xinclude.html).
Does the difficulty with the XIncludes validation mean Oxygen does not support that kind of modularization?
Thanks,
-Zby
My question is a reference to Bob Stayton's book, exactly to the section on processing modular DocBook files (http://sagehill.net/docbookxsl/Xinclude.html).
Does the difficulty with the XIncludes validation mean Oxygen does not support that kind of modularization?
Thanks,
-Zby
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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