[ 
http://issues.apache.org/jira/browse/XALANJ-2193?page=comments#action_12322722 
] 

arnaud commented on XALANJ-2193:
--------------------------------

what is currieux, it is when I use the function document() in the stylesheet, 
the problem disappear.
<xsl:param name="test" select="document('')" />

> nodeset disappeared after xsl:apply-templates
> ---------------------------------------------
>
>          Key: XALANJ-2193
>          URL: http://issues.apache.org/jira/browse/XALANJ-2193
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: 2.6, 2.7
>  Environment: windows XP, j2sdk1.4.2_06, xsltc
>     Reporter: arnaud
>     Priority: Blocker

>
> Hello, 
> I have a problem with a stylesheet in xsltc mode. 
> The test of presence of nodes of a variable fails so beforehand one made a 
> xsl:apply-templates on this variable.
> Here a testcase to reproduce the problem. 
> -------------------
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>     <xsl:template match="/">
>       <xsl:apply-templates select="flux/source/table">
>       <xsl:with-param name="noeud" select="flux/table[nom='tableaux']/id" />
>       </xsl:apply-templates>
>     </xsl:template>
>     <xsl:template match="table">
>     <xsl:param name="noeud" />
>     <xsl:apply-templates select="$noeud" />
>     <xsl:choose>
>         <xsl:when test="$noeud">OK</xsl:when>
>         <xsl:otherwise>KO</xsl:otherwise>
>     </xsl:choose>
>     </xsl:template>
>     <xsl:template match="*" />
> </xsl:stylesheet>
> ---------------------
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <flux>
>       <source>
>               <table/>
>       </source>
>       <table>
>               <nom>tableaux</nom>
>               <id>test</id>
>       </table>
> </flux>

-- 
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