I got a NullPointerException when I compile a stylesheet file, so I made a one-line change to this file. Hope it helps.


xml-xalan/java/src/org/apache/xalan/xsltc/compiler/LiteralElement.java

------- Line 285 ------------
- else if (qname.getNamespace().equals(XSLT_URI)) {

+ else if (qname.getNamespace()!=null && qname.getNamespace().equals(XSLT_URI)) {
or
+ else if (XSLT_URI.equals(qname.getNamespace()) {



BTW,  I got a lot of errors like this, Is there anything I can do to get rid of them? Thanks.

Warning:
  Attribute 'Action' outside of element. 
  Attribute 'Service' outside of element.
  ......
Compile errors:
  Variable or parameter 'http://www.ispsoft.com:baseTime' is undefined.
  Variable or parameter 'http://www.ispsoft.com:Info' is undefined.
  Error parsing XPath expression '$Info'.
  Required attribute 'select' is missing.
  ......

Reply via email to