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

Joe Kesselman edited comment on XALANJ-2474 at 6/20/23 5:28 PM:
----------------------------------------------------------------

FWIW, I rattled off a basic "render XML as text by recreating syntax" 
stylesheet so I can dump content in an *xsl:message* (identitext.xsl; not fully 
polished but if folks think it would be useful for debugging I can add it to 
our toolkit) and patched the test to run this over both the input document and 
the document(). Modulo errors in that, the two trees appear to have identical 
content, as expected.

Next question is, are they loaded with different URIs? I added a printout of 
*nodeinfo:systemId()* to my dump, and it shows the same URI for both */* and 
{*}document(){*}.

So this +_*may*_+ in fact be a genuine error, assuming that *generate-id()* is 
the point of change.

Needs a stripped down test to focus on the precise failure point.


was (Author: JIRAUSER285361):
FWIW, I rattled off a basic "render XML as text by recreating syntax" 
stylesheet so I can dump content in an *xsl:message* (identitext.xsl; not fully 
polished but if folks think it would be useful for debugging I can add it to 
our toolkit) and patched the test to run this over both the input document and 
the document(). Modulo errors in that, the two trees appear to have identical 
content, as expected.

Next question is, are they loaded with different URIs? I added a printout of 
*nodeinfo:systemId()* to my dump, and it shows the same URI for both */* and 
{*}document(){*}.


So this {+}_*may*_{+}{+}{{+}} in fact be a genuine error, assuming that 
*generate-id()* is the point of change.

Needs a stripped down test to focus on the precise failure point.

> 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