Re: bug in exsl:node-set example on web site
Oleg Tkachenko <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Organization | Multiconn Technologies |
| Message-ID | <[email protected]> |
spage wrote: > Hi there, my first post. > > http://exslt.org/exsl/functions/node-set/index.html has an example using > a result tree fragment variable named "tree". > > Except the stylesheet doesn't use the variable. It does: > <xsl:value-of select="count(exslt:node-set(//*))" /> > > This just counts the nodes in the source document, which you could do > equally well with > <xsl:value-of select="count(//*)" /> > > I think you mean > <xsl:value-of select="count(exslt:node-set($tree)//*)" /> > > or something like that. > > It's a confusing example because both the tree variable and the source > document have almost the same number of nodes, so 5 seems a reasonable > answer. It doesn't even use the source document. I would leave out the > source document altogether and say "Result (with any XML input)" Yep, that's confusing. I pointed that and other problems in documentation several times, nothing changed. The same goes for addition new features. EXSLT seems to be dying. Is it because many believe XSLT 2.0 will draw EXSLT useless? -- Oleg Tkachenko http://blog.tkachenko.com Multiconn Technologies, Israel