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

Re: xsl-value-of does not process xsl values?

Subject: Re: xsl-value-of does not process xsl values?
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 31 Aug 2001 10:27:36 -0600 (MDT)
xslt text substitution
David Carlisle wrote:
> That's your mistake. value-of does not give the content of the elements
> it gives the string value (ie just the character data).

Not only that, but when you select multiple nodes, xsl:value-of only uses
the string value of the first node in the set. 

I'm not sure why xsl:value-of needed to exist; it seems like xsl:text
could have served the same purpose, had it been allowed to contain an
XPath expression, and would have led to slightly less confusion 
(xsl:text and xsl:value-of both mean "create one text node").

Of course, as long as people think of XML & XSLT documents as strings
rather than trees, and XSLT instructions as text substitution macros
rather than tree access & construction tools, this will continue to be a
FAQ.

   - Mike
____________________________________________________________________________
  mike j. brown, fourthought.com  |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  personal: http://hyperreal.org/~mike/

 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.