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
[EMAIL PROTECTED]

-----Original Message-----
From: Sylvain Amrani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 5:40 PM
To: [EMAIL PROTECTED]
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

Reply via email to