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] | [List Home]

Subject: RE: [docbook] stylesheet changes??

[Switching to docbook-apps]

Let's say you use the <ulink/> with a file: protocol to specify your file,
as in:

<ulink url="file:document.pdf">PDF format</ulink>

The following XSLT template will create the output you want:

<xsl:template match="ulink[starts-with(@url,'file:')]">
 <object id="hhctrl" type="application/x-oleobject"
   <param name="Command" value="ShortCut"/>
   <param name="Button" value="Text:{.}"/>
   <param name="Item1" value=",{substring-after(@url,'file:')},"/>

> -----Original Message-----
> From: Felix Zanker [mailto:fzanker@riks.nl]
> Sent: Wednesday, June 11, 2003 5:25 AM
> To: docbook@lists.oasis-open.org
> Subject: [docbook] stylesheet changes??
> Running into some more problems with the html help files:
> So I have a docbook document (which will be compiled into an html help
> file), and I want to create a link to an external pdf file 
> stored locally on
> a pc. As this documentation is part of a piece of software, and the
> installation path is completely up to the user I can't use 
> absolute links.
> I have found this page which shows me how I can work around 
> the linking
> problem:
> http://www.author-it.com/docs/html/kb/html/5351.htm
> But as I understand I will need to change my stylesheet for 
> this to work.
> Has anybody ever done any work similar to this, who could tell me what
> changes need to be done to my stylesheet?
> Cheers
> felix
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org

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