Re: problem with parsing of colspecs in table.mod.xsl

James Devenish <[email protected]> Fri, 12 Dec 2003 08:40:34 +0800
Newsgroups gmane.text.docbook.db2latex.general
Message-ID <[email protected]>
Hi,

In message <[email protected]>
on Thu, Dec 11, 2003 at 06:57:13PM +0000, Brian McGurk wrote:
> diff -r -u /usr/local/share/xsl/db2latex-0.7/xsl/table.mod.xsl /usr/local/share/xsl/db2latex-0.7-LocalPatch/xsl/table.mod.xsl
> --- /usr/local/share/xsl/db2latex-0.7/xsl/table.mod.xsl	2003-04-14 20:31:46.000000000 +0100
> +++ /usr/local/share/xsl/db2latex-0.7-LocalPatch/xsl/table.mod.xsl	2003-12-09 14:54:40.000000000 +0000
> @@ -101,7 +101,7 @@
>  	    <xsl:when test="$i > $cols"></xsl:when>
>  	    <!-- There are still columns to count -->
>  	    <xsl:otherwise>
> -		<xsl:variable name="width" select="colspec[@colnum=$i]/@colwidth"/>
> +		<xsl:variable name="width" select="./colspec[$i]/@colwidth"/>

Both the - line and the + line are correct, but for different uses of
<colspec>. This was fixed after DB2LaTeX 0.7. Snapshots are available
at <http://db2latex.sourceforge.net/snapshot/>.

> -			<xsl:when test="$latex.use.tabularx=1 and contains(colspec/@colwidth,'*')">
> +			<xsl:when test="$latex.use.tabularx=1 and contains(./colspec/@colwidth,'*')">
[...]
> -			<xsl:when test="$latex.use.tabularx=1 and count(colspec[@align='justify'])&gt;0">
> +			<xsl:when test="$latex.use.tabularx=1 and count(./colspec[@align='justify'])&gt;0">

Better look at this more extensively. If that is a slip-up, there are
probably more of them around the place.




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click