You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mi...@apache.org on 2003/10/23 21:31:44 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/processor ProcessorLRE.java

minchau     2003/10/23 12:31:44

  Modified:    java/src/org/apache/xalan/processor ProcessorLRE.java
  Log:
  Weird error message for wront NameSpace for stylesheet now
  produces a more correct message.
  PR: bug 5659
  Submitted by:	Richard Cao
  Reviewed by:	Brian Minchau
  
  Revision  Changes    Path
  1.23      +6 -5      xml-xalan/java/src/org/apache/xalan/processor/ProcessorLRE.java
  
  Index: ProcessorLRE.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/processor/ProcessorLRE.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- ProcessorLRE.java	17 Oct 2003 20:59:30 -0000	1.22
  +++ ProcessorLRE.java	23 Oct 2003 19:31:44 -0000	1.23
  @@ -198,15 +198,16 @@
   					// declaration.
   					// If someone comes up with a better solution, please feel 
   					// free to contribute it. -mm
  -					String msg = e.getMessage();
  +         
   					if (stylesheet.getDeclaredPrefixes() == null || 
   						!declaredXSLNS(stylesheet))
   					{
  -						msg = msg +"; " + XSLMessages.createWarning(XSLTErrorResources.WG_OLD_XSLT_NS, null);
  -						
  +						throw new org.xml.sax.SAXException(XSLMessages.createWarning(XSLTErrorResources.WG_OLD_XSLT_NS, null));
   					}
  -					//else
  -						throw new org.xml.sax.SAXException(msg, e);
  +					else
  +                    {
  +						throw new org.xml.sax.SAXException(e);
  +                    }
   				}
           handler.pushElemTemplateElement(stylesheet);
   
  
  
  

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