This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook] mediaobject fileref troubles


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]