[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Passing text() or element nodes

Subject: Passing text() or element nodes
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Wed, 10 Jan 2001 18:57:43 +0000
 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.