Validating with xinclude or entities
Oxygen general issues.
Validating with xinclude or entities
Hi, I feel like I must be missing something simple here. I am working in DocBook 5 docs using xinclude. Both Author mode and the transforms pull in the xinclude files just fine, so I'm not having trouble using them. However, I always get a validation error with xincludes. Usually along the lines of "include failed" and "system cannot find the path specified". However, the path is correct and the files are there and everything resolves just fine in Author mode and XSLT. These messages, however, are irritating and I'm always worried that they are masking other validation errors. How can I get rid of these validation errors?
I get a similar issue when I use entities instead of xinclude. With entities I get E[Jing]FileNotFoundException. Again, the files are there and the output is fine, but this validation error is annoying and potentially masking other issues.
Thanks for any help.
I get a similar issue when I use entities instead of xinclude. With entities I get E[Jing]FileNotFoundException. Again, the files are there and the output is fine, but this validation error is annoying and potentially masking other issues.
Thanks for any help.
Re: Validating with xinclude or entities
Hi,
Do you get the same problem with the DocBook 5 sample we have inside the oXygen sample project in [oXygen]/samples/docbook/v5/sampleXInclude.xml?
Please make sure you use correct URIs for referring to those files, for example you can check that you use forward slashes (/) as path delimiters and not back slashes (\). A sample and some more details about how we should be able to reproduce the behavior you describe would help us a lot to understand what is going on.
Best Regards,
George
Do you get the same problem with the DocBook 5 sample we have inside the oXygen sample project in [oXygen]/samples/docbook/v5/sampleXInclude.xml?
Please make sure you use correct URIs for referring to those files, for example you can check that you use forward slashes (/) as path delimiters and not back slashes (\). A sample and some more details about how we should be able to reproduce the behavior you describe would help us a lot to understand what is going on.
Best Regards,
George
George Cristian Bina
Re: Validating with xinclude or entities
That's odd. I don't get validation errors using your sample, though I don't see what's different.
As with your sample, I'm using a relative path. The files I'm including are in the same folder, so I just use this:
The only difference I see is that you have the namespace in there, but I declare the namespace in my root element, so that shouldn't be it.
Here's a full sample with the granular stuff taken out. This is more or less a complete file. This file also returns "include failed" and "Include operation failed, reverting to fallback. Resource error reading file as XML" and "Reason: [filepath to included file] (The system cannot find the path specified)"
As with your sample, I'm using a relative path. The files I'm including are in the same folder, so I just use this:
Code: Select all
<xi:include href="chapter04.xml"/>
Code: Select all
<book xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf" version="5.0" xml:id="book">
Re: Validating with xinclude or entities
Sorry, here is the DocBook file:
Code: Select all
<book xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf" version="5.0" xml:id="book">
<info>
<title>Blah</title>
<subtitle>Blah</subtitle>
<author>
<personname>Sarah Soandso</personname>
</author>
</publisher>
<copyright>
<year>2012</year>
<holder>Joe Coffee</holder>
</copyright>
<legalnotice role="RightsAndPermissions">
<para role="editorial-credit">Quotations are from</para>
<para role="art-credit">Cover art: © Somebody.</para>
</legalnotice>
</info>
<dedication><?dbhtml filename="dedication.html" ?>
<para>Blah</para>
</dedication>
<toc/>
<xi:include href="preface.xml"/>
<xi:include href="chapter01.xml"/>
<xi:include href="chapter02.xml"/>
<xi:include href="chapter03.xml"/>
<xi:include href="chapter04.xml"/>
<xi:include href="chapter05.xml"/>
<xi:include href="chapter06.xml"/>
<xi:include href="chapter07.xml"/>
<xi:include href="chapter08.xml"/>
<xi:include href="bibliography.xml"/>
<appendix role="acknowledgments">
<?dbhtml filename="acknowledgments.html" ?>
<title>Acknowledgments</title>
<para>Blah blah</para>
</appendix>
</appendix>
</book>
Re: Validating with xinclude or entities
Please try to create a complete sample with two documents, one the main file and the other the included file. Then you can post that here or zip them and send them to support@oxygenxml.com.
Otherwise with the partial example provided it is hard to see the whole picture as the included files are missing.
Please post also the complete error message, see the "Show Message" action from the contextual menu, that will present you the message or you can copy the message with the copy action (CMD+C on Mac CTRL+C on Windows/Linux).
Best Regards,
George
Otherwise with the partial example provided it is hard to see the whole picture as the included files are missing.
Please post also the complete error message, see the "Show Message" action from the contextual menu, that will present you the message or you can copy the message with the copy action (CMD+C on Mac CTRL+C on Windows/Linux).
Best Regards,
George
George Cristian Bina
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