You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "arnaud (JIRA)" <xa...@xml.apache.org> on 2005/09/01 18:26:31 UTC
[jira] Created: (XALANJ-2193) nodeset disappeared after xsl:apply-templates
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Commented: (XALANJ-2193) nodeset disappeared after xsl:apply-templates
Posted by "arnaud (JIRA)" <xa...@xml.apache.org>.
[ 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Commented: (XALANJ-2193) nodeset disappeared after xsl:apply-templates
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2193?page=comments#action_12356620 ]
Brian Minchau commented on XALANJ-2193:
---------------------------------------
Looks like a candidate for a 2.7.1 release.
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org