[ http://nagoya.apache.org/jira/browse/XALANJ-1618?page=history ]
Henry Zongaro updated XALANJ-1618:
----------------------------------
Assign To: (was: Xalan Developers Mailing List)
type: New Feature (was: Bug)
Description:
I have the next situation:
1. A servlet (jsp page) calling a transformation from an xsl file.
2. The stylesheet is using an global parameter ( <xsl:param name="request"/> )
which is passed at runtime from servlet using Transformer.setParameter method
3. The parameter passed is an org.w3c.dom .Element object.
If the code above is running with the interpretive processor then everything
is working fine.
If the code is running using compiled stylesheet then:
1. If I do <xsl:comment><xsl:copy-of select="$request" /></xsl:comment> I will
receive a null parameter display.
2. If I'm accessing the Element structure
<xsl:value-of select="$request/@envId"/>
then I receive the error:
java.lang.RuntimeException: Invalid conversion from 'reference'
to 'org.apache.xerces.dom.ElementImpl'.
was:
I have the next situation:
1. A servlet (jsp page) calling a transformation from an xsl file.
2. The stylesheet is using an global parameter ( <xsl:param name="request"/> )
which is passed at runtime from servlet using Transformer.setParameter method
3. The parameter passed is an org.w3c.dom .Element object.
If the code above is running with the interpretive processor then everything
is working fine.
If the code is running using compiled stylesheet then:
1. If I do <xsl:comment><xsl:copy-of select="$request" /></xsl:comment> I will
receive a null parameter display.
2. If I'm accessing the Element structure
<xsl:value-of select="$request/@envId"/>
then I receive the error:
java.lang.RuntimeException: Invalid conversion from 'reference'
to 'org.apache.xerces.dom.ElementImpl'.
Environment:
Operating System: Windows XP
Platform: PC
was:
Operating System: Windows XP
Platform: PC
Priority: Major
Bugzilla Id: (was: 22043)
> setParameter method of Transformer class doesn't work properly with XSLTC
> -------------------------------------------------------------------------
>
> Key: XALANJ-1618
> URL: http://nagoya.apache.org/jira/browse/XALANJ-1618
> Project: XalanJ2
> Type: New Feature
> Components: XSLTC
> Versions: 2.0.0
> Environment: Operating System: Windows XP
> Platform: PC
> Reporter: Tripon Moisa
>
> I have the next situation:
> 1. A servlet (jsp page) calling a transformation from an xsl file.
> 2. The stylesheet is using an global parameter ( <xsl:param name="request"/>
> )
> which is passed at runtime from servlet using Transformer.setParameter method
> 3. The parameter passed is an org.w3c.dom .Element object.
> If the code above is running with the interpretive processor then everything
> is working fine.
> If the code is running using compiled stylesheet then:
> 1. If I do <xsl:comment><xsl:copy-of select="$request" /></xsl:comment> I
> will
> receive a null parameter display.
> 2. If I'm accessing the Element structure
> <xsl:value-of select="$request/@envId"/>
> then I receive the error:
> java.lang.RuntimeException: Invalid conversion from 'reference'
> to 'org.apache.xerces.dom.ElementImpl'.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]