[ https://issues.apache.org/jira/browse/XALANJ-2718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17797250#comment-17797250 ]
Martin Honnen commented on XALANJ-2718: --------------------------------------- Thanks, [~mukul_gandhi] , I can confirm that your workaround works. Depending on your long term goals with the development branch you might want to document such restrictions, to allow an easier adaption of existing XSLT 3 code. > StackOverflow exception with recursive use of key function and comma operator > ----------------------------------------------------------------------------- > > Key: XALANJ-2718 > URL: https://issues.apache.org/jira/browse/XALANJ-2718 > Project: XalanJ2 > Issue Type: Bug > Security Level: No security risk; visible to anyone(Ordinary problems in > Xalan projects. Anybody can view the issue.) > Components: transformation, Xalan, Xalan-CmdLine > Affects Versions: The Latest Development Code > Reporter: Martin Honnen > Assignee: Gary D. Gregory > Priority: Major > Attachments: flat-product-list.xml, recursive-key-use1.xsl > > > This is a bug report on the XSLT 3.0 development branch of XalanJ. > I have written some XSLT 2/3 code making use of a key, recursion due to use > of the key function in apply-templates with a select attribute of the form > {code:java} > <xsl:apply-templates select="(@*, node(), key('child', @id))"/>{code} > > That spews out lots of errors/warnings about > {noformat} > Line no 24, col number 70, expected ), found: ,{noformat} > (that is my translation of the German error message I get) > {noformat} > Zeilennummer24; Spaltennummer70; Erwartet wurde ), gefunden wurde: > ,{noformat} > and finally terminates with > {noformat} > XSLT-error (java.lang.StackOverflowError): null > Exception in thread "main" java.lang.RuntimeException > at org.apache.xalan.xslt.Process.doExit(Process.java:1158) > at org.apache.xalan.xslt.Process.main(Process.java:1131){noformat} > > Other XSLT 3 processors like both Saxon Java and SaxonJS run the code fine > and produce a nested product list. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org For additional commands, e-mail: dev-h...@xalan.apache.org