You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "David Pérez (JIRA)" <xa...@xml.apache.org> on 2005/08/01 16:32:37 UTC

[jira] Created: (XALANJ-2177) Cannot navigate with XPath axes on str:tokenize()

Cannot navigate with XPath axes on str:tokenize()
-------------------------------------------------

         Key: XALANJ-2177
         URL: http://issues.apache.org/jira/browse/XALANJ-2177
     Project: XalanJ2
        Type: Bug
    Versions: 2.6    
 Environment: Java 1.5
Windows 2003
    Reporter: David Pérez


With the following stylesheet (it doesn't use any source XML data)

<?xml version="1.0" encoding="UTF-8"?>
<xs:stylesheet version="1.0"
	xmlns:xs="http://www.w3.org/1999/XSL/Transform"
	xmlns:str="http://exslt.org/strings"
>
	<xs:template match="/*">
		<a>
		<xs:apply-templates select="str:tokenize('first,second,third,fourth',',')"/>
		</a>
	</xs:template>
	
	<xs:template match="token">
		<b>I'm token<xs:value-of select="."/>
			<siblings>
				<xs:for-each select="preceding-sibling::token">
					<sibling><xs:value-of select="."/></sibling>
				</xs:for-each>
			</siblings>
		</b>
	</xs:template>
</xs:stylesheet>

I don't get any <siblings>.
I expect to be able to process successfully the preceding-sibling XPath axe.

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