Re: [xslt] str:tokenize behavior
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] str:tokenize behavior
- Date: Wed, 23 Apr 2003 19:40:06 -0400
On Wed, Apr 23, 2003 at 02:47:59PM -0600, Vakoc, Mark wrote:
> Hey Daniel, it's back...
>
> The attached stylesheet seems to exhibit incorrect behavior when using
> str:tokenize() in the select of <xsl:for-each>. Does xsltForEach need to
> check that the node-set obtained from evaluating is a RTF and if so call the
> applyOneTemplate on the children of the 'container' element?
Yup, looks like the problem. Plus the tokenize function returns
an XPATH_NODESET intead of a XPATH_XSLT_TREE making the detection
nearly impossible ... In a nutshell seems:
- the tokenize function need to return a XPATH_XSLT_TREE (easy)
- xsltForEach need to detect the case of and XPATH_XSLT_TREE
and iterate on the children instead of the document node.
I'm off to bed, maybe tomorrow... But I would like to get a release out
I'm not sure if I will block due to EXSLT...
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]