You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mu...@apache.org on 2023/08/28 06:47:17 UTC

[xalan-java] branch master updated: committing minor changes to xalanj README file, as per the following change that was done earlier : movement of the 2.7.3_release test cases to jira directory. also making a minor improvement to error handling within xalanj implementation codebase, when variables were not been resolved within an xslt 1.0 stylesheet.

This is an automated email from the ASF dual-hosted git repository.

mukulg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xalan-java.git


The following commit(s) were added to refs/heads/master by this push:
     new be0d250e committing minor changes to xalanj README file, as per the following change that was done earlier : movement of the 2.7.3_release test cases to jira directory. also making a minor improvement to error handling within xalanj implementation codebase, when variables were not been resolved within an xslt 1.0 stylesheet.
     new 92781cb4 Merge pull request #66 from mukulga/xalan-j_master_mukul
be0d250e is described below

commit be0d250e109b491167fb16b37bb5d8dc76494baf
Author: Mukul Gandhi <ga...@gmail.com>
AuthorDate: Mon Aug 28 12:11:11 2023 +0530

    committing minor changes to xalanj README file, as per the following change that was done earlier : movement of the 2.7.3_release test cases to jira directory. also making a minor improvement to error handling within xalanj implementation codebase, when variables were not been resolved within an xslt 1.0 stylesheet.
---
 README                                  | 14 --------------
 src/org/apache/xpath/VariableStack.java |  6 +++++-
 2 files changed, 5 insertions(+), 15 deletions(-)

diff --git a/README b/README
index f8d13c31..0fd73e9d 100644
--- a/README
+++ b/README
@@ -121,17 +121,3 @@ within the test build conf.xsltc's output).
 4) whitespace35     https://issues.apache.org/jira/browse/XALANJ-2643
 
 These XSLT transformation issues, do not exist with the XalanJ interpretive processor.
-     
-4.4 From folder xalan-test/tests/2.7.3_release, run the batch file 2.7.3_release.bat (for Windows) or 
-shell script 2.7.3_release.sh (for Linux) to run certain tests, specific to XalanJ 2.7.3 and higher versions.
-
-The final result of running this tests batch file/shell script (point 4.4), for these test's success should 
-be following,
-The xalanj integer truncation bug fix test passed!
-The test case passed [xalan_interpretive : jira_xalanj_2584]!
-The test case passed [xalan_xsltc : jira_xalanj_2584]!
-The test case passed [xalan_interpretive : jira_xalanj_2623]!
-The test case passed [xalan_xsltc : jira_xalanj_2623]!
-
-Users may read information within the batch file 2.7.3_release.bat or shell script 2.7.3_release.sh, to know 
-more about these tests (i.e, point 4.4). 
diff --git a/src/org/apache/xpath/VariableStack.java b/src/org/apache/xpath/VariableStack.java
index fcdab8b2..fa9c44e3 100644
--- a/src/org/apache/xpath/VariableStack.java
+++ b/src/org/apache/xpath/VariableStack.java
@@ -20,6 +20,7 @@
  */
 package org.apache.xpath;
 
+import javax.xml.transform.SourceLocator;
 import javax.xml.transform.TransformerException;
 
 import org.apache.xalan.res.XSLMessages;
@@ -501,6 +502,8 @@ public class VariableStack implements Cloneable
 
     org.apache.xml.utils.PrefixResolver prefixResolver =
       xctxt.getNamespaceContext();
+    
+    SourceLocator srcLocator = xctxt.getSAXLocator();
 
     // Get the current ElemTemplateElement, which must be pushed in as the 
     // prefix resolver, and then walk backwards in document order, searching 
@@ -541,7 +544,8 @@ public class VariableStack implements Cloneable
         return getGlobalVariable(xctxt, vvar.getIndex());
     }
 
-    throw new javax.xml.transform.TransformerException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_VAR_NOT_RESOLVABLE, new Object[]{qname.toString()})); //"Variable not resolvable: " + qname);
+    throw new javax.xml.transform.TransformerException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_VAR_NOT_RESOLVABLE, 
+                                                                             new Object[]{qname.toString()}), srcLocator); //"Variable not resolvable: " + qname);
   }
 }  // end VariableStack
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xalan.apache.org
For additional commands, e-mail: commits-help@xalan.apache.org