[ 
https://issues.apache.org/jira/browse/XALANJ-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548236
 ] 

Bash commented on XALANJ-2413:
------------------------------

Hi Henry,

Thanks for the fast reply, and sorry for the late one.
Ive done some additional testings.
my new stylesheet is:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:variable name="gp" select="a/b/c/d"/>
<xsl:template match="/">
        <xsl:variable name="aaa">
                <xsl:value-of select="$gp"/>
        </xsl:variable>
        <xsl:variable name="ccc" select="$gp"/>
        
        <xsl:value-of select="$aaa"></xsl:value-of>     
        <xsl:text> - </xsl:text>
        <xsl:value-of select="$ccc"></xsl:value-of>

</xsl:template>
</xsl:stylesheet>

My multithreaded environment is java/xalan ( javax.xml.transform.* libraries )

Running this stylesheet should return ( for ex ) a - a
or b - b 
but not a - b for sure
and thats what i am getting sometimes.
note: when i am getting a - b ( b is not even in the xml file passed )

I've tried it with xalan-2.7.1 and i couldnt reproduce.
is there any batch or something i can use to solve this problem ?

Thanks.

> Sometimes wrong results on a multithreaded environment
> ------------------------------------------------------
>
>                 Key: XALANJ-2413
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2413
>             Project: XalanJ2
>          Issue Type: Bug
>    Affects Versions: 2.6
>         Environment: xalan 2.6
>            Reporter: Bash
>
> Running this xsl on a multithreaded environment against many xml files might 
> return some bad results
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
>       <xsl:with-param name="var"><xsl:value-of 
> select="$var1"></xsl:value-of></xsl:with-param>
> </xsl:call-template>
> where this wont ..
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
>       <xsl:with-param name="var2" select="$var1"></xsl:with-param>
> </xsl:call-template>
> Even tried to remove the last() from the select; the error ratio dropped down 
> alot but still there.
> Thanks

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to