Guoliang,
Thanks! I've added the fix to the code tree.
I can't really tell you why you get the warnings you get.
Are you able to send me the stylesheets you are compiling,
or maybe a fraction of the stylesheet (enough to reproduce
the warnings/errors).
Morten
Guoliang Cao wrote:
>
> 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.
> ......