Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image not mapping in Xinclude file call

Status
Not open for further replies.

cmarchman

Programmer
Jun 18, 2004
56
US
I've got the following xml doc that produces the appropriate html output with the image displayed:
----------------code inserted------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"

<section>
<title>Unpacking Instructions</title>
<para>
1. Unpack the box.</para>
<para>
2. Verify the following components are enclosed (Figure A).
</para>
<graphic fileref="./Graphics/PackageContents.bmp"/>

<para>

-----------------End of snippet----------------------------

However, when this file is included in another xml file, the image is not displayed. Xinclude code follows:

-------------------code inserted---------------------------

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"[
<!ENTITY % xinclude SYSTEM "/Program Files/Oxygen XML Editor 7.2/frameworks/docbook/dtd/xinclude.mod" >
%xinclude;
<!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED" >
]>
<book>
<title>User Manual</title>
<section>
<title>Unpacking Instructions</title>
<xi:include href="./Unpacking Instructions_files/Unpacking_Instructions-Template.xml" parse="xml"
xmlns:xi=" <xi:fallback>
<para>
<emphasis>FIXME: MISSING XINCLUDE CONTENT</emphasis>
</para>
</xi:fallback>
</xi:include>
</section>

</book>

-------------------End of code snippet----------------------

The text part of the included file gets displayed when transformed into html, but the image does not.

Any help would be greatly appreciated.

Thanks,

cmarchman
 
I've got this worked out. As long as the main xml and the included xml's are in the same directory, everything works fine.

Thanks,

cmarchman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top