You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mk...@apache.org on 2002/09/13 19:56:09 UTC

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

mkwan       2002/09/13 10:56:09

  Modified:    java/src/org/apache/xalan/processor XSLTAttributeDef.java
  Log:
  For Bugzilla 12127. Throw a TransformerException if a prefix cannot
  be resolved to a URI insteading of throwing a NullPointerException.
  
  Revision  Changes    Path
  1.25      +6 -0      xml-xalan/java/src/org/apache/xalan/processor/XSLTAttributeDef.java
  
  Index: XSLTAttributeDef.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/processor/XSLTAttributeDef.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- XSLTAttributeDef.java	26 Jul 2002 00:28:15 -0000	1.24
  +++ XSLTAttributeDef.java	13 Sep 2002 17:56:09 -0000	1.25
  @@ -1274,6 +1274,12 @@
         String url = handler.getNamespaceForPrefix(prefix);
   
         strings.addElement(url);
  +      
  +      if (url != null)
  +        strings.addElement(url);
  +      else
  +        throw new org.xml.sax.SAXException(XSLMessages.createMessage(XSLTErrorResources.ER_CANT_RESOLVE_NSPREFIX, new Object[] {prefix}));
  +    
       }
   
       return strings;
  
  
  

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