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

Attribute Value Templates?

Subject: Attribute Value Templates?
From: Tyler Baker <tyler@xxxxxxxxxxx>
Date: Fri, 02 Oct 1998 04:39:36 -0400
xsl value of attribute
When computing generated text using xsl:value of and attribute value
templates, the spec is not clear on what to do if the number of nodes
selected by the select pattern return 0.  In this case, should the XSL
Processor throw an exception or should it just treat the evaluation of
the string expression as being invalid and therefore ignored.

"The value of a string expression that is a pattern is the character
content of the first node selected by the pattern. If the first node is
an attribute node, the value is the attribute value. If the first node
is an element node, the value is computed by concatenating all
characters that are descendants of the element node in the order in
which they occur in the document. The pattern is a select pattern and so
is implicitly anchored to the current node."

Nowhere in here does it say what to do if the select pattern returns no
nodes.

Tyler


 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.