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: Re: DOCBOOK-APPS: imagedata and entityref


> From: Gerrit Niestijl <g.niestijl@rra.nl>
> 
> I was just trying to an entityref instead of a fileref for including an
> image. But this results in the generation of the absolute path to the images
> instead of the relative path, when i generate html with openjade (1.3) and the
> dsssl stylesheets (1.72). 
> 
> I use this XML input:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
>   "\\intranet\public\dtd\docbookx412\docbookx.dtd"
> [
> <!ENTITY rapport.excel "\\RRA1\vol1\home\niestijl\rapport\periodiek\rapporten.xls">
> <!ENTITY dlg_vernieuw SYSTEM "images/dlg_distrib.png" NDATA PNG>
> ]>
> 
> <article lang="nl">
> ....
>         <screenshot>
>           <mediaobject>
>             <imageobject>
>               <imagedata entityref="dlg_distrib" format="PNG"/>
>             </imageobject>
>           </mediaobject>
>         </screenshot>
> ....
> 
> Here is the HTML output:
> 
> ....
> <DIV CLASS="mediaobject">
> <P><IMG
> SRC="H:^92;project^92;documentatie^92;xmldir^92;rapport^92;handleiding^92;images/dlg_vernieuw.png"></IMG>
> </P>
> </DIV>
> ....
> 
> This is what i want:
> 
> <DIV CLASS="mediaobject">
> <P><IMG
> SRC=images/dlg_vernieuw.png"></IMG>
> </P>
> </DIV>
> 
> Can i get this output and still use entityref's or should i stick to fileref's?

I use jade and relative paths in image entityrefs work fine.
Is this an openjade feature?

I do see an inconsistency in entity names and
files in your example, though:

  <!ENTITY dlg_vernieuw SYSTEM "images/dlg_distrib.png" NDATA PNG>

  <imagedata entityref="dlg_distrib" format="PNG"/>

  <IMG SRC=images/dlg_vernieuw.png"></IMG>

Is the example wrong, or is it possible you are refering to
the wrong entity name?

bobs
Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com


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


Powered by eList eXpress LLC