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

text()

Subject: text()
From: "Birnbaum, David J" <djbpitt@xxxxxxxx>
Date: Mon, 24 Mar 2014 23:05:19 -0400
 text()
Dear XSLT List,

I'm almost afraid to enter this discussion because it has wandered off in
non-productive and sometimes embarrassing directions, but I'll take a
chance and hope that I can say something constructive and useful and that
any responses (not that any are required or expected) will stay on target:
What I found confusing about text() when I first began learning XPath is
that it ends with a pair of parentheses, like string(), which led me to
the erroneous assumption that it was a function, like string(), and not a
node test, like *. That's not a complaint about XPath syntax or even an
inquiry about why things are the way they are. It's just an observation
that in a world where many things that end in a pair of parentheses are
functions, it perhaps shouldn't be surprising that beginners
overgeneralize and assume, incorrectly, that parentheses imply a function
and that text(), therefore, is a function that says "give me all of the
textual content (that is, the string value) of something."

Best,

David

Current Thread
  • text()
    • Birnbaum, David J - 25 Mar 2014 03:05:36 -0000 <=

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.