From: SourceForge.net <no...@so...> - 2008-11-19 20:37:46
|
Bugs item #2269202, was opened at 2008-11-12 13:21 Message generated for change (Comment added) made by mzjn You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2269202&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: output: all formats >Status: Pending >Resolution: Fixed Priority: 5 Private: No Submitted By: Antti Karanta (akaranta) Assigned to: Nobody/Anonymous (nobody) Summary: tabstyle template gets the wrong style in nested tables Initial Comment: commons/table.xsl finds the table to read tabstyle attribute from like this (lines 494-): <xsl:variable name="table" select="($node/ancestor-or-self::table | $node/ancestor-or-self::informaltable)[1]"/> This yields the wrong result for nested tables - the style of the outermost table is selected, resulting in styles of innermost tables being ignored. This is easily fixed: <xsl:variable name="table" select="($node/ancestor-or-self::table | $node/ancestor-or-self::informaltable)[last()]"/> I.e. the only change is changing index 1 to last() ---------------------------------------------------------------------- Comment By: Mauritz Jeanson (mzjn) Date: 2008-11-19 21:37 Message: A fix for this issue has been added to the current codebase. Please test the fix with the latest snapshot from: http://docbook.sourceforge.net/snapshots/ ---------------------------------------------------------------------- Comment By: Antti Karanta (akaranta) Date: 2008-11-19 19:36 Message: Transforming the attached docbook xml using the attached customization layer stylesheet shows the bug and demonstrates that it is fixed by the code change described above. File Added: nested_tables_to_fo.xsl ---------------------------------------------------------------------- Comment By: Antti Karanta (akaranta) Date: 2008-11-19 19:34 Message: File Added: docbook_nested_tables_sample.xml ---------------------------------------------------------------------- Comment By: Mauritz Jeanson (mzjn) Date: 2008-11-18 20:59 Message: Please provide a test document that demonstrates the problem. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2269202&group_id=21935 |