You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2007/02/13 19:21:05 UTC
[jira] Commented: (XALANJ-2365) NPE in DOMSource transformation
using xsl:copy-of select
[ https://issues.apache.org/jira/browse/XALANJ-2365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472814 ]
Henry Zongaro commented on XALANJ-2365:
---------------------------------------
Hi, Andrew. I was unable to reproduce the problem using a simple driver program that parsed the input into a DOM tree and used a DOMSource for the transformation. Would it be possible for you to include a Java driver program that demonstrates the problem? Henry
> NPE in DOMSource transformation using xsl:copy-of select
> --------------------------------------------------------
>
> Key: XALANJ-2365
> URL: https://issues.apache.org/jira/browse/XALANJ-2365
> Project: XalanJ2
> Issue Type: Bug
> Components: transformation
> Affects Versions: 2.7
> Environment: Windows XP, running Sun Java 1.5 and IBM Java 1.5
> Reporter: Andrew Hay
> Fix For: The Latest Development Code
>
> Attachments: copy-of_select.xml, XMLValidatorUpdate.xsl
>
>
> We're currently working on moving from Xalan 2.3.1 to Xalan 2.7.0 and have
> encountered a problem with xsl:copy-of. Using StreamSource transformations,
> the code behaves as expected. However when using a DOMSource transformation
> (which we mostly do) a NullPointerException is thrown. The transformation
> is exited at the point reached without any exception being thrown.
> Unfortunately the resulting XML is missing nodes that had not been reached
> in the transformation.
> The XSL stylesheet is very similar to many others that we have, with the
> template causing the problem being :-
> <xsl:template match="/WorkingDocument/Notes/Request" mode="build">
> <Request>
> <xsl:copy-of select = "Message"/>
> <xsl:copy-of select = "Action"/>
> <xsl:copy-of select = "NPQuote"/>
> ......
> Some manipulation of data in the Request node
> .......
> </Request>
> </xsl:template>
> The node /WorkingDocument/Notes/Request/NPQuote does not exist. Xalan
> outputs a warning message "SystemId Unknown; Line #37; Column #37;
> java.lang.NullPointerException" but does not throw an Exception. No node
> after the completion of the previous line appears in the resulting XML.
> I've tried this in Xalan 2.7.0 unsuccessfully and also recreated the same
> problem this week in Xalan 2.7.1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org