Look at the stylesheet. The document() function is being called to try to load 
a file not provided here, and it looks like the stylesheet then  tries to 
compare that to the input XML file.

Not having that file (having document() return an empty nodeset) produces 
different error messages than having it and failing the compare.

Of course it's possible that not having this file was the user's actual 
problem, rather than different results on the two versions of Xalan. But 
without it, or without more detail about what differences were being reported, 
there isn't much we can do with this report. Especially since both versions 
cited are ancient.


--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!
________________________________
From: Vladimir Sitnikov (Jira) <j...@apache.org>
Sent: Friday, June 16, 2023 1:47:00 AM
To: dev@xalan.apache.org <dev@xalan.apache.org>
Subject: [jira] [Commented] (XALANJ-2474) document() function returns different 
values with xalan version 2.7.1. and 2.6.0.


    [ 
https://issues.apache.org/jira/browse/XALANJ-2474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733328#comment-17733328
 ]

Vladimir Sitnikov commented on XALANJ-2474:
-------------------------------------------

What do you mean "it depends on a result.xml not posted"?

I just tried running the testcase in the ticket, and it does execute, and 
produce some output. It does not rely on result.xml

> document() function returns different values with xalan version 2.7.1. and 
> 2.6.0.
> ---------------------------------------------------------------------------------
>
>                 Key: XALANJ-2474
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2474
>             Project: XalanJ2
>          Issue Type: Bug
>      Security Level: No security risk; visible to anyone(Ordinary problems in 
> Xalan projects.  Anybody can view the issue.)
>    Affects Versions: 2.7.1
>         Environment: Windows, using command line transform of xalan.
>            Reporter: pavankumar
>            Priority: Blocker
>         Attachments: input.xml, transform.xslt
>
>
> xslt document() function returns duplicate and improper values with 2.7.1. 
> where as the same code works with 2.6.0.
> Info : document and evaluate functions are used in xslt and there were other 
> slightly inconsistent behaviour also for 2 versions in terms of syntax and 
> all. and xlink:href is getting nil values in 2.7.1
> document result contained by path variable line 93 - transform.xsl is the one 
> causing problem. and and when printed, it outputs different values with 
> different versions.
> Executed using xalan CLI
> C:\>java org.apache.xalan.xslt.Process -IN "C:\input.xml" -XSL 
> "C:\transform.xslt" -OUT new.html -PARAM global.result input.xml
> attaching the files.transform.xslt and input.xml



--
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

Reply via email to