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: absolute links with website2


Probably your best option is to override the template with
mode="chunk-filename" in 'chunk.xsl' and change these lines:
<xsl:variable name="dir">
  <xsl:call-template name="dbhtml-dir"/>
</xsl:variable>

to these:
<xsl:variable name="dir">
  <xsl:text>http://myserver/path/dir/</xsl:text>
</xsl:variable>

You may also want to try putting this line into your XML files as a child of
your top-level element:
<?dbhtml dir="http://myserver/path/dir/";  filename="index.html"?>

However, I don't think this will have the behavior that you want, and I'm
fairly certain that it will try writing all of your files into that
directory, which may not be possible.

Jeff Beal
Ansys, Inc.
(724)514-3150
jeff.beal@ansys.com

-----Original Message-----
From: Sylvain Amrani [mailto:sam@samrani.com]
Sent: Tuesday, March 26, 2002 5:40 PM
To: docbook-apps@lists.oasis-open.org
Subject: DOCBOOK-APPS: absolute links with website2

Hi,

I don't want relative links for website pages.

I would like that all the links generated with the website2
stylesheets look like this:
http://myserver/path/dir/the-page-in-the-filename-attribute.html

but not this:
../directory/filename.html

I tried to read the xsl source, but I can't see how to write a
customizer for that.

Is there an easy way to do such things ?

(the reasons I need this is that I wan't to use website to generate
webpages that will be hard-coded in a CGI. Using relative links
will make pages relatives to the cgi path, what is wrong).

Thanks for you help

--
Sylvain Amrani
sam at samrani dot com


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


Powered by eList eXpress LLC