Subject: Passing text() or element nodes
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Wed, 10 Jan 2001 18:57:43 +0000
|
Hi,
I'm having a discussion with Jarno Elovirta at the moment on the
relative merits of the following XPaths being used to specify the
values of parameters being passed to a named template:
foo
foo/text()
string(foo)
string(foo/text())
assuming that (a) there is only one foo child of the current node and
(b) the foo element has only one text node, i.e.:
<foo>bar</foo>
Can any XSLT-processor implementers (or anyone else!) comment on their
relative merits/demerits?
Thanks,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|