This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] Nested ItemizedLists with IE and PDF
- From: Ray Miller <ray dot miller at nist dot gov>
- To: docbook at lists dot oasis-open dot org
- Date: Mon, 7 Feb 2005 14:28:42 -0500
- Subject: Re: [docbook] Nested ItemizedLists with IE and PDF
- Organization: National Institute of Standards and Technology
- References: <200502010956.08826.ray.miller@nist.gov> <028601c50974$394cfbd0$6400a8c0@toshiro>
> How about providing a short sample of your input and the HTML output so we
> have a better idea of what is going on?
Docbook XML
<itemizedlist>
<title>
<emphasis>Section Metrics</emphasis>
</title>
<listitem>
<simpara>
<emphasis>Project deliverables</emphasis>
</simpara>
</listitem>
<listitem override="none">
<itemizedlist>
<listitem>
<simpara>
<emphasis>Dates</emphasis>
</simpara>
</listitem>
<listitem>
<simpara>
<emphasis>Locations</emphasis>
</simpara>
</listitem>
<listitem>
<simpara>
<emphasis>Quantity Required</emphasis>
</simpara>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<simpara>
<emphasis>Delivery media specified</emphasis>
</simpara>
</listitem>
<listitem>
<simpara>
<emphasis>Any special instructions for packaging and
handling</emphasis>
<inlinemediaobject>
<imageobject>
<imagedata depth="14pt" scalefit="1"
entityref="imgChecklist"/>
</imageobject>
</inlinemediaobject>
</simpara>
</listitem>
</itemizedlist>
HTML (ie6)
<div class="itemizedlist"><p class="title"><b>
<span class="emphasis"><em>Section Metrics</em></span>
</b></p><ul type="disc"><li>
<span class="emphasis"><em>Project deliverables </em></span>
</li><li style="list-style-type: none"><div class="itemizedlist"><ul
type="circle"><li>
<span class="emphasis"><em>Dates</em></span>
</li><li>
<span class="emphasis"><em>Locations</em></span>
</li><li>
<span class="emphasis"><em>Quantity Required</em></span>
</li></ul></div></li><li>
<span class="emphasis"><em>Delivery media specified</em></span>
</li><li>
<span class="emphasis"><em>Any special instructions for packaging and
handling</em></span>
<span class="inlinemediaobject"><img
src="file:/home/millerray/DocBook/images/checklist.gif" height="18"></span>
</li></ul></div>
Another issue (maybe should start another thread :-):
XML
[
...
<!ENTITY imgChecklist SYSTEM "images/checklist.gif" NDATA GIF>
...
]
...
<listitem>
<simpara>
<emphasis>Any special instructions for packaging and
handling</emphasis>
<inlinemediaobject>
<imageobject>
<imagedata depth="14pt" scalefit="1"
entityref="imgChecklist"/>
</imageobject>
</inlinemediaobject>
</simpara>
</listitem>
...
The ENTITY declaration resides within the doctype block; the itemizedList
fragment resides in a separate <sect2> source file; linkage through nested
xincludes.
The resulting HTML source is not a relative image path but a fully qualified
uri (full path specification). When utilzing fileref in lieu of entityref,
the full path directory of the source files is prepended to a full path
specification resulting in two file:// statements in the image src= output.
Problem only exists when xincludes are implemented.
--
Ray Miller