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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: mediaobject fileref troubles


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



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