OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: DOCBOOK-APPS: image-library problems


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


(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">
      <graphic fileref="bar.gif"></graphic>

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

  <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"/>
  <alttext>blah blah blah</alttext>

and an imagelib/catalog:


  SGMLDECL "/usr/local/lib/sgml/dsssl/docbook/dtds/decls/xml.dcl"

(so that a directory listing would look like


) 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:


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 
  jade:/usr/lib/sgml/style-sheet.dtd:14:2:E: unknown declaration type
  jade:/usr/local/lib/sgml/dsssl/docbook/html/docbook.dsl:309:0:E: DTD
      did not contain element declaration for document type name
      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?


Jason Holmes

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC