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

Re: select element based on value of one of the childr

Subject: Re: select element based on value of one of the children
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Tue, 11 Oct 2005 11:19:37 +0200
xml select element
You are looking for:

select="a[b = '7']"

The [...] is called a predicate.

If you look closely enough at the example, you will notice a select expression containing a predicate as well...


Schellekens, B.J.G. wrote:

XSL processor, processor version, and version of the language: I use IE6
to test my stylesheet and have the following header in my stylesheet
<xsl:stylesheet version="1.0"

Dear reader,
As a XML and XSL newbie I would like to know whether it is possible to
select an element based on the value of one of children and how this can
best be done.

I have a xml document with the following structure:

I would like to know how to, for example, select the following element
and use it in my stylesheet (<xsl:for-each select="???????">):

Note that I select the element with a child b having a value of 7.



P.S. I tried to do my "homework" and found the following example
http://www.dpawson.co.uk/xsl/sect2/N3235.html#d4086e214. I, however, do
not understand what their solution to the problem is.

-- Drs. G.P.H. Josten Consultant

Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199

De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.

Current Thread


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.
First Name
Last Name
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.