This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Passing text() or element nodes
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Passing text() or element nodes
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Wed, 10 Jan 2001 18:57:43 +0000
- CC: "Jarno Elovirta" <jarno at elovirta dot com>
- Organization: Jeni Tennison Consulting Ltd
- Reply-To: xsl-list at lists dot mulberrytech dot com
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