Hi XMLMind team,

The more I use your editor, the more I like it! I have only one problem I found 
recently: when using XInclude and referring to a file stored in a folder other 
than the current one, the error message displays on opening the file:

/book/chapter/xi:include: missing or invalid "href" attribute

This is how the XInclude looks in my file:

<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>

<book>
  <title>Book Title</title>

<chapter>
    <xi:include href="../general/intro.xml" 
xmlns:xi="http://www.w3.org/2001/XInclude"; />
</chapter>
</book>

However, if I put the destination file intro.xml into the same folder where the 
book file is stored and therefore change the code to:

<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>

<book>
  <title>Book Title</title>

<chapter>
    <xi:include href="intro.xml" xmlns:xi="http://www.w3.org/2001/XInclude"; />
</chapter>
</book>

... everything works correctly.

How can it be? Am I doing something wrong?

Thank you in advance!

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20070729/bc48ca83/attachment.htm
 

Reply via email to