This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] mediaobject fileref troubles
- From: Bob Stayton <bobs at sco dot com>
- To: Patrick Eisenacher <eisenacher at fillmore-labs dot com>
- Cc: "docbook at lists dot oasis-open dot org" <docbook at lists dot oasis-open dot org>
- Date: Fri, 13 Jun 2003 14:18:41 -0700
- Subject: Re: [docbook] mediaobject fileref troubles
- References: <3EE7351E.40304@fillmore-labs.com> <3EEA2C98.2020607@fillmore-labs.com>
Text insertions are handled by a docbook XSL extension
function. Graphics files are simply referenced in the
output, but a text file has to be filtered to escape
angle brackets and ampersands. See this reference
to see what you need for text insertions:
http://www.sagehill.net/xml/docbookxsl/SolveProblems.html#ProgramListings
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
On Fri, Jun 13, 2003 at 09:57:12PM +0200, Patrick Eisenacher wrote:
> Hmm, anybody any ideas?
>
> Patrick
>
> Patrick Eisenacher schrieb:
> > Heyho,
> >
> > so far I used markup like the following to include graphics into my
> > document:
> >
> > <mediaobject>
> > <imageobject>
> > <imagedata fileref="Specification/ArchitectureClient.png"
> > format="PNG" align="center" />
> > </imageobject>
> > </mediaobject>
> >
> > This worked fine for a graphic named "ArchitectureClient.png" residing
> > in a subfolder named "Specification", which is contained in the same
> > folder as my document. Ie, I used a path relative to the target
> > document's folder to reference the graphic object.
> >
> > Now, I wanted to do the same to include a textfile via the <textdata> tag:
> >
> > <mediaobject>
> > <textobject>
> > <textdata fileref="Specification/LicenseOffer.xml">
> > </textobject>
> > </mediaobject>
> >
> > Unfortunately, this doesn't work.
> >
> > I see an xlink in the generated html, but the textfile gets not included:
> >
> > <div class="mediaobject">
> > <a xmlns:xlink="http://www.w3.org/1999/xlink" type="simple" show="embed"
> > actuate="onLoad" href="Specification/LicenseOffer.xml"></a>
> > </div>
> >
> > So probably, the browser can not resolve the path to the textfile. I
> > read that I have to set xml:base if I want to use xlink with relative
> > paths. But where and how do I set it? And how do I set xml:base to the
> > current directory of my document? Or am I doing something else wrong? If
> > I have to set xml:base indeed, this seems to be an inconsistent
> > behaviour in the usage of <mediaobject>. Perhaps some info should be
> > added to TDG.
> >
> > I also tried referencing my text file via an absolute path, but that
> > didn't help neither. Same result :o( How would I have to specify the
> > absolute path to "C:\Programme\Specification\LicenseOffer.xml"? I guess
> > the path gets processed by the browser and not by the xsltprocessor, right?
> >
> > I tried the following alternatives, but to no avail (I'm using Cygwin
> > for processing docbook):
> > C:\Programme\Specification\LicenseOffer.xml
> > file:///C:/Programme/Specification/LicenseOffer.xml
> > file:///cygdrive/c/Programme/Specification/LicenseOffer.xml
> > file:////cygdrive/c/Programme/Specification/LicenseOffer.xml
> > /cygdrive/c/Programme/Specification/LicenseOffer.xml
> >
> > Can anybody please help?
> >
> > Thanks in advance,
> > Patrick
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org