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

RE: variable in xpath?

Subject: RE: variable in xpath?
From: Greg Faron <gfaron@xxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Apr 2002 17:01:43 -0600
xpath date variable
At 04:44 PM 4/11/2002, you wrote:
I will give it a try, but could someone comment on the predicate within predicate syntax used here? It is very
rare - I never saw it beofre


   select="element[*[name()=$child and . = $value]]"
or:
   select="*[*[name()=$child and . = $value]]"

Just read it out loud:
"Select every node named 'element' that itself has a node named $child and the value of that child node is $value."


  In psuedo-xml, it would select all "element" nodes that looked like
<element>
  <$child>$value</$child>
</element>

The outer predicate is a condition on which element objects to select. The inner predicate is a condition on which children of element to select (as a basis for selecting the parent itself).



Greg Faron
Integre Technical Publishing Co.



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.