Subject: Re: [xsl] finding elements lowest in hierarchy? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 27 Jan 2004 08:30:49 -0500 |
I have several template matches at several stages in a hierarchy of elements, i am trying to find an xpath staement to find out if any of a particuler elements lowest children have an attirbute called "minimum".
e.g. given this hierarchy
<1>
<2>
<3><4 minimum="true"></4><4></4><4 minimum="true"></4><4></4></3>
<3><4></4><4></4></3>
</2>
<2>
<3><4></4><4></4><4></4></3>
</2>
</1>
e.g. when it template matches for "2" i am trying to say if any "4" elements below the current element have a minimum attribute then execute some code.....
i would like to do the smae for other elemnts such as "3"-- if there are any "4" elements below the current element have a minimum attribute then execute some code
does anyone know how to find out whether any of the lowest children in a hierarchy have a particuler attribute??
-- Public courses: sign up for one or both soon to reserve your seat! Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22 Hong Kong, China: 2004-05-17 Bremen, Germany: 2004-05-24 World-wide on-site corporate, government & user group XML training
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] finding elements lowest i, David Carlisle | Thread | Re: [xsl] finding elements lowest i, james walker |
Re: [xsl] finding elements lowest i, David Carlisle | Date | Re: [xsl] finding elements lowest i, james walker |
Month |