You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Kenneth Reistad (JIRA)" <xa...@xml.apache.org> on 2007/04/19 07:57:15 UTC

[jira] Reopened: (XALANJ-2380) dyn:evaluate gives no result the second time it is called. When using a variable with no rtf. It is working in version 2.6.0

     [ https://issues.apache.org/jira/browse/XALANJ-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth Reistad reopened XALANJ-2380:
-------------------------------------


<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet exclude-result-prefixes="exsl dyn" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dyn="http://exslt.org/dynamic" xmlns:exsl="http://exslt.org/common">
	<xsl:output encoding="ISO-8859-1" indent="yes" method="xml" omit-xml-declaration="no" version="1.0"/>
	<xsl:template match="/">
		<root>
			<xsl:variable name="employees">
				<employee>
					<name>
						<first>Firstname0</first>
						<last>Lastname0</last>
					</name>
				</employee>
			</xsl:variable>
			
			<xsl:variable name="employee" select="exsl:node-set($employees)/employee"/>
			|
			<xsl:value-of select="dyn:evaluate('$employee/name/last/text()')"/>
			*
			<xsl:value-of select="dyn:evaluate('$employee/name/last/text()')"/>
			-
			<xsl:value-of select="dyn:evaluate('$employee/name/last/text()')"/>
		</root>
	</xsl:template>
</xsl:stylesheet>


I'm very sorry for the bad example that I've given. The above stylesheet should be executable by xalan.... Only the first evaluate gives a result...

> dyn:evaluate gives no result the second time it is called. When using a variable with no rtf. It is working in version 2.6.0
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XALANJ-2380
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2380
>             Project: XalanJ2
>          Issue Type: Bug
>         Environment: Windows XP, JDK 1.6.0
>            Reporter: Kenneth Reistad
>            Priority: Critical
>             Fix For: The Latest Development Code
>
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet exclude-result-prefixes="dyn" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dyn="http://exslt.org/dynamic">
> 	<xsl:output encoding="ISO-8859-1" indent="yes" method="xml" omit-xml-declaration="no" version="1.0"/>
> 	<xsl:template match="/">
> 		<root>
> 			<xsl:variable name="employees">
> 				<employee>
> 					<name>
> 						<first>Firstname0</first>
> 						<last>Lastname0</last>
> 					</name>
> 				</employee>
> 			</xsl:variable>
> 			
> 			<xsl:variable name="employee" select="$employees/employee"/>
> 			
> 			<xsl:value-of select="dyn:evaluate('$employees/employee/name/last/text()')"/>|
> 			<xsl:value-of select="dyn:evaluate('$employees/employee/name/last/text()')"/>|
> 			<xsl:value-of select="dyn:evaluate('$employees/employee/name/last/text()')"/>|
> 			***
> 			<xsl:value-of select="dyn:evaluate('$employee/name/last/text()')"/>|
> 			<xsl:value-of select="dyn:evaluate('$employee/name/last/text()')"/>|
> 			<xsl:value-of select="dyn:evaluate('$employee/name/last/text()')"/>|
> 		</root>
> 	</xsl:template>
> </xsl:stylesheet>

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