This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
image-library problems
- To: docbook-apps at lists dot oasis-open dot org
- Subject: DOCBOOK-APPS: image-library problems
- From: Jason Holmes <jholmes at psu dot edu>
- Date: Wed, 21 Mar 2001 09:52:14 -0500
Hi,
I'm having problems getting an image-library to work. I'm using DocBook
XML 4.1.2, DSSSL 1.63, and OpenJade 1.3. They're installed in:
DocBook XML -> /usr/local/lib/sgml/docbook/4.1
DSSSL -> /usr/local/lib/sgml/dsssl
OpenJade -> /usr/lib/sgml
so my SGML_CATALOG_FILES environment variable is set to
SGML_CATALOG_FILES="/usr/lib/sgml/dsssl.cat:
/usr/local/lib/sgml/docbook/4.1/docbook.cat:
/usr/local/lib/sgml/dsssl/docbook/catalog"
(all on one line, of course). If I create a simple file foo.xml such as
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE book PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN'>
<book id="index">
<bookinfo>
<title>Foo</title>
<graphic fileref="bar.gif"></graphic>
</bookinfo>
</book>
and an imagelib/imagelib.xml that looks like this (ripped off mostly
from the imagelib.xml in the dsssl test directory):
<?xml version='1.0'?>
<!DOCTYPE image-library PUBLIC "-//Norman Walsh//DTD Image Library
1.0//EN"
"/usr/local/lib/sgml/dsssl/docbook/dtds/imagelib/imagelib.dtd">
<image-library>
<image id="bar" filename="bar.gif">
<properties format="gif" width="162" height="89">
<meta name="interlaced" content="no"/>
<meta name="colors" content="256"/>
<meta name="transparent" content="no"/>
<meta imgattr="yes" name="border" content="1"/>
<meta imgattr="yes" name="hspace" content="5"/>
</properties>
<alttext>blah blah blah</alttext>
</image>
</image-library>
and an imagelib/catalog:
OVERRIDE YES
SGMLDECL "/usr/local/lib/sgml/dsssl/docbook/dtds/decls/xml.dcl"
(so that a directory listing would look like
bar.gif
foo.xml
imagelib/imagelib.xml
imagelib/catalog
) and then do a
jade -t sgml -f err.out -E 10000 -V image-library
-d /usr/local/lib/sgml/dsssl/docbook/html/docbook.dsl foo.xml
the created html doesn't seem to get any of the image's properties:
...
<IMG
SRC="bar.gif"
ALT="">
...
I'm rather new to this stuff, so I've tried a lot of things that
probably don't make any sense. I've added 'imagelib/catalog' to my
SGML_CATALOG_FILES in which case I get many errors along the lines of
jade:/usr/lib/sgml/style-sheet.dtd:13:2:E: unknown declaration type
"element"
jade:/usr/lib/sgml/style-sheet.dtd:14:2:E: unknown declaration type
"attlist"
jade:/usr/local/lib/sgml/dsssl/docbook/html/docbook.dsl:309:0:E: DTD
did not contain element declaration for document type name
jade:/usr/local/lib/sgml/dsssl/docbook/html/docbook.dsl:66:0:E:
notation "DSSSL" for entity "dbl1el" undefined
(many errors snipped). No html files are created in this case. I've
tried explicitly defining the image-library-filename with a '-V
image-library-filename="imagelib/imagelib.xml"' (no good). I've tried
using a stylesheet to define them (no good). I've tried using both
<graphic> and <inlinemediaobject><imageobject><imagedata> (having seen
an older message saying that, at one point in time, image-library didn't
work with imagedata... no good). I have a feeling that I'm missing
something simple here. Ignoring the image-library side of things (and
jade's complaints about the iso entities), everything else seems to
work. Can anyone tell me what I'm doing wrong?
Thanks,
--
Jason Holmes
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org