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

RE: Constructing Simple Content and Built-in Template

Subject: RE: Constructing Simple Content and Built-in Template Rules
From: Peter Gerstbach <peter@xxxxxxxxxxxx>
Date: Wed, 13 Apr 2005 11:25:11 +0200
un conte simple
Quoting Michael Kay <mike@xxxxxxxxxxxx>:
The effect is the same, but by coincidence rather than by definition. I
think the effect will always be the same if the content is untyped.

In 2.0 in the presence of a schema, however, doing the recursive descent
with apply-templates will give you the concatenation of the text nodes,
whereas value-of takes the typed value and converts it to a string, which
may be subtly different. In the worst case, if <root> is described in the
schema as an element with element-only content, value-of will fail, because
such an element has no typed value.

Thanks for your quick answer.


But this worst case is in fact a problem fore me.
Why does atomization of an element-only node raises an error? Wouldn't it be
better to concatenate the typed value of all node descendants, as it is done
with the string value?

Peter

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.