[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SAXON 5.3.1 is available (SAXON interest only)

Subject: Re: SAXON 5.3.1 is available (SAXON interest only)
From: "Bill Rishel" <illusyn@xxxxxxxxxx>
Date: Mon, 24 Apr 2000 22:45:53 -0700
saxon xsl param array
Is there some problem with the saxon.xsl list? I sent
a message reporting an error with 5.3.1 on 4-23 and
another on 4-24. Neither message has shown up on
the list. I am reporting here as a last resort.

I am getting a java.lang.ArrayIndexOutOfBoundsException
error with 5.3.1. I managed to create a pared down
stylesheet that produces the error. I have been using Instant
Saxon for 5.2 but am now wanting to use the Java version. The
Java version of 5.3.1 does not produce the same results for me
as Instant Saxon 5.2. In the process of trying to isolate the
difference between the two versions I encountered the array
bounds error and ended up focusing on getting an example that
produces that.

Notes:
1. In the process of paring down the example below the numeric
attribute for the out of bounds exception went from 6 down  to 1.
In several, if not all of the cases, the reduction in the value
corresponded to the removal of a function parameter.
[stack issue?].
2. When I had saxon:trace="yes" the 5.3.1 version would report
lines numbers of -1 (the second line number displayed on the
trace output).

Attached is a styelesheet that produces the array bounds error.

Bill Rishel
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  version="1.0"
			    xmlns:saxon="http://icl.com/saxon" 
                extension-element-prefixes="saxon"
				>
<!--
This stylesheet produces the following error with Saxon 5.3.1:
java.lang.ArrayIndexOutOfBoundsException: 1
-->

<xsl:template match="/">
		<xsl:call-template name="TestFunction"/>
</xsl:template>

<!-- ~~~~~~~~~~~~~~~   TestFunction   ~~~~~~~~~~~~~~~~ -->
<xsl:template name="TestFunction">

	<xsl:variable name="tmp-derive-from">
		<xsl:element name="top">
			<xsl:element name="debug"/>
		</xsl:element>
	</xsl:variable>

	<xsl:variable name="super" select="//non-existent"/>

		<xsl:for-each select="*">
				<xsl:call-template name="GetElem">
					<xsl:with-param name="element-set" select="$super/*"/>
				</xsl:call-template>
		</xsl:for-each>
</xsl:template>

<!-- ~~~~~~~~~~~~~~~   GetElem   ~~~~~~~~~~~~~~~~ -->
<xsl:template name="GetElem">
	<xsl:param name="element-set"/>

	<xsl:copy-of select="$element-set[@name]"/>
</xsl:template>				

</xsl:stylesheet>
Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.