This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: href.target bug with PI dbhtml-dir andchunk.first.sections = 0 ?
- From: Norman Walsh <ndw at nwalsh dot com>
- To: Janning Vygen <vygen at gmx dot de>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 04 Sep 2002 12:36:32 -0400
- Subject: DOCBOOK-APPS: Re: href.target bug with PI dbhtml-dir andchunk.first.sections = 0 ?
- References: <200209041240.g84CeF603085@janning.planwerk6.local>
[ Follow-ups to docbook-apps, please. ]
/ Janning Vygen <vygen@gmx.de> was heard to say:
| template href.target produces a wrong href if you have a PI
| inside a section which is not chunked because its the
| first section in context and you have
| chunk.first.sections = 0
|
| Of course you can call it an error if you use an PI
| with dir attribute if it is not a chunk...
I believe this patch to chunk-common.xsl fixes the problem
diff -r1.27 chunk-common.xsl
126a127,131
> <!-- returns the filename of a chunk -->
> <xsl:variable name="ischunk">
> <xsl:call-template name="chunk"/>
> </xsl:variable>
>
131c136
< <xsl:if test="$fn != ''">
---
> <xsl:if test="$ischunk != 0 and $fn != ''">
Fixed in CVS.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Fast. Cheap. Well. Pick two.
http://www.oasis-open.org/docbook/ |
Chair, DocBook Technical Committee |