This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: Images at top of book
- From: Jeff Beal <jeff dot beal at ansys dot com>
- To: 'Jeff Rancier' <jeff dot rancier at softechnics dot com>,"Docbook-Apps at Lists dot Oasis-Open. Org" <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 01 Apr 2002 15:09:31 -0500
- Subject: RE: DOCBOOK-APPS: Images at top of book
Semantically speaking, your best option will be using the <bookinfo> tag,
which allows <mediaobject> as a child. Doing it this way, getting the
images to show up in a single line will need to be a stylesheet
customization.
However, <bookinfo> also allows several tags (such as <corpname>) which
allow <inlinemediaobject>, which will then show up on a line.
So, the following should work fairly easily:
<book>
<bookinfo>
<title>...</title>
<subtitle>...</subtitle>
<corpname><inlinemediaobject>. .
.</inlinemediabobject><inlinemediaobject>. .
.</inlinemediaobject></corpname>
</bookinfo>
. . .
</book>
You may want to look at other valid children of bookinfo which allow
inlinemediaobjects. (Subtitle also allows for inlinemediaobject's, but if
you're using subtitle for something else, you'll just have your company
logos inline with that line.
Jeff Beal
Ansys, Inc.
(724)514-3150
jeff.beal@ansys.com
-----Original Message-----
From: Jeff Rancier [mailto:jeff.rancier@softechnics.com]
Sent: Monday, April 01, 2002 2:51 PM
To: Docbook-Apps@Lists. Oasis-Open. Org
Subject: DOCBOOK-APPS: Images at top of book
Hello,
I am trying to generate a book which currently starts out like so:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book PUBLIC "-//Arbortext//DTD DocBk XML V2.0//EN"
"file:///docbookx.dtd" []>
<?xml-stylesheet href="file:///docbook.xsl" type="text/xsl"?>
<book>
<title>My Product<trademark></trademark> Enhancement Requirements</title>
<subtitle>My SubTitle</subtitle>
<dedication>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="images/image1.gif" format="gif"/>
</imageobject>
</mediaobject>
</screenshot>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="images/image2.gif" format="gif"/>
</imageobject>
</mediaobject>
</screenshot>
Is there any way of doing this without the dedication element? The images
represent company logos, and that's why I want them at the top, below the
title. Also, the above also generates images that are stacked up
vertically. Is there any way to get them in a row (i.e. without a break at
the end of the image?
Thanks.
---------------------------------------------------------------------------
Jeff Rancier jeff.rancier@softechnics.com
SofTechnics, Inc. Tel (315) 706-1111
7063 Interstate Island Rd. Fax (315) 706-9999
Syracuse, NY 13209 http://www.softechnics.com
---------------------------------------------------------------------------