[ http://issues.apache.org/jira/browse/XALANJ-2053?page=all ]

Brian Minchau updated XALANJ-2053:
----------------------------------

    Fix Version: 2.7

> with-param causes NullPointerException when trace options used
> --------------------------------------------------------------
>
>          Key: XALANJ-2053
>          URL: http://issues.apache.org/jira/browse/XALANJ-2053
>      Project: XalanJ2
>         Type: Bug
>   Components: Trace-facility
>     Versions: 2.6
>  Environment: Win XP
>     Reporter: Kurt Hall
>     Priority: Minor
>      Fix For: 2.7

>
> Adding any trace option (-TT, -TS, -TG, -TTC) to the command line results in 
> a NullPointerException when a <xsl:with-param> element is used in the body of 
> an <xsl:apply-templates>.  
> For example, given the stylesheet:
>   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
>     version="1.0">
>     <xsl:template match="*">
>         <xsl:apply-templates>
>           <xsl:with-param name="parm" select="'stuff'"/>
>         </xsl:apply-templates>
>     </xsl:template>
>   </xsl:stylesheet>
> the command:
>    c:\Java\j2re1.4.2_05\bin\java 
> -Xbootclasspath/p:c:\xalan-j_2_6_0\bin\xalan.jar;c:\xerces-2_6_2\xml-apis.jar;c:\xerces-2_6_2\xercesImpl.jar
>  org.apache.xalan.xslt.Process -IN showbug.xml -XSL showbug.xsl -TT 
> gives the result:
>   null Line #0, Column #0: template match='/' 
> file:///c:/dev/blueprints/showbug.xsl Line #3, Column #27: template match='*' 
>   file:///c:/dev/blueprints/showbug.xsl; Line #0; Column #0; XSLT Error 
> (javax.xml.transform.TransformerException): java.lang.NullPointerException

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to