[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Getting variable yet most immediate parentNode
Subject: Re: [xsl] Getting variable yet most immediate parentNode
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 28 Sep 2007 12:24:21 -0400
|
At 12:16 PM 9/28/2007, you wrote:
Let's assume I want to go one further and say that "@value" has
precedent over "@name" which has precedent over ".". Would adding
@value to the end of that give it first priority?
in xpath2 that's
(@value,@name,.)[1]
... and in XPath 1.0, you're forced into explicit testing, since
attributes have no order in the data model.
Cheers,
Wendell
======================================================================
Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
|