This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Bug: use id as filename,and root.filename appear mutually exclusive
- From: Norman Walsh <ndw at nwalsh dot com>
- To: Robert Collins <robert dot collins at itdomain dot com dot au>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 08 Jan 2002 08:38:26 -0500
- Subject: DOCBOOK-APPS: Re: Bug: use id as filename,and root.filename appear mutually exclusive
- References: <043801c197e9$62d169f0$0200a8c0@lifelesswks>
/ Robert Collins <robert.collins@itdomain.com.au> was heard to say:
| IMO the root.filename parameter should override the use.id.as.filename
| parameter, or if both behaviours are needed, there should be a parameter
| to control that.
Seems reasonable. I'm not sure why that behavior changed. Here is the patch
now checked into CVS:
Index: chunk.xsl
===================================================================
RCS file: /cvsroot/docbook/xsl/html/chunk.xsl,v
retrieving revision 1.9
diff -r1.9 chunk.xsl
158a159,163
> <!-- if this is the root element, use the root.filename -->
> <xsl:when test="not(parent::*) and $root.filename != ''">
> <xsl:value-of select="$root.filename"/>
> <xsl:value-of select="$html.ext"/>
> </xsl:when>
163,167d167
< <xsl:value-of select="$html.ext"/>
< </xsl:when>
< <!-- if this is the root element, use the root.filename -->
< <xsl:when test="not(parent::*)">
< <xsl:value-of select="$root.filename"/>
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | The greatest of all secrets is
http://www.oasis-open.org/docbook/ | knowing how to reduce the force of
Chair, DocBook Technical Committee | envy.--Cardinal De Retz