This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Passing text() or element nodes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]