Vladimir Prus wrote:
Hello,
I've just made some tweaks to my library, and getting the following error when
Docbook is generated:


runtime error: file /home/ghost/Work/boost/tools/boostbook/xsl/type.xsl line
1080 element variable
xsl:variable : redefining end

line 1080 of type.xsl is: 1078: <xsl:variable name="end" select="$indentation 1079: + string-length($result) 1080: - string-length($prefix)"/>

as part of an xsl:choose/xsl:otherwise (switch/default) statement, but there is another xsl:variable called end at line 1041:
1041: <xsl:variable name="end" select="$column + string-length($result)"/>


in the xsl:template at line 1011.

The error is repeated several times and build is terminated. The simplest
reproduction recipe is at:

http://zigzag.cs.msu.su:7813/Boostbook

The XML file hasn't changed for a long time, so it's HPP file that's causing
troubles -- which has nothing but a single enum.

The problem is with type.xsl, not the XML or HPP files.


Help in resolving this problem is very appreciated.

The solution would be to rename the variable end at line 1078:


1078 -          <xsl:variable name="end" select="$indentation
1078 +          <xsl:variable name="end2" select="$indentation

and the place where it is used:

1084 -            <xsl:with-param name="column" select="$end"/>
1084 +            <xsl:with-param name="column" select="$end2"/>

Regards,
Reece

_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Boost-docs mailing list
[EMAIL PROTECTED]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to