From: SourceForge.net <no...@so...> - 2007-11-04 22:31:10
|
Bugs item #1825736, was opened at 2007-11-04 23:31 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1825736&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: XSL2 Group: other Status: Open Resolution: None Priority: 5 Private: No Submitted By: Florent Georges (florentgeorges) Assigned to: Nobody/Anonymous (nobody) Summary: err:XTTE0570 in functions.xsl at compile time Initial Comment: Hi In the function f:refentry-section-level(), in the module xsl2/base/common/functions.xsl, the variable $levelinRE is defined as following: <xsl:variable name="levelinRE" as="xs:integer"> <xsl:choose> <xsl:when test="$section/self::db:refsynopsisdiv">1</xsl:when> <xsl:when test="$section/self::db:refsect1">1</xsl:when> <xsl:when test="$section/self::db:refsect2">2</xsl:when> <xsl:when test="$section/self::db:refsect3">3</xsl:when> <xsl:when test="$section/self::db:refsection"> <xsl:value-of select="count($section/ancestor::db:refsection)+1"/> </xsl:when> </xsl:choose> </xsl:variable> This results in an err:XTTE0570 error at compile time with Saxon 9. You can see the thread in the XSL-List archives posted by me (Florent Georges) at 2007-11-04T22:35:50+01:00 with the subject "XTTE0570 at compilation, depending on runtime conditions?" (sorry, the list archives are not updated yet, I can't give a direct link). The November's archives are there: http://www.biglist.com/lists/xsl-list/archives/200711/threads.html Adding the following should solve the problem: <xsl:otherwise> <xsl:sequence select="error(xs:QName('err:XTTE0570'))" xmlns:err="http://www.w3.org/2005/xqt-errors"/> </xsl:otherwise> Best regards, --drkm ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1825736&group_id=21935 |