At 11:55 AM 6/7/2006, Andrew wrote:
On 6/7/06, Wendell Piez <wapiez(_at_)mulberrytech(_dot_)com> wrote:
Chris,
Doesn't your problem reduce to the first c node descendant?
/descendant::c[1]
?
With XSLT 1.0's first item semantics, couldn't you reduce that to:
/descendant::c
If you only wanted the string value, yes.
If you wanted to apply a template to the node or do something else
with it, then you need the predicate.
(not that that is a good a idea...)
Yeah, I'm training myself out of relying on this rule as it lapses
with XSLT 2.0. IMO the scale has tipped and it's now better always to
add the [1].
Cheers,
Wendell
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--