Now I know what I made wron. Thanks a lot...
R.
G. Ken Holman schrieb:
At 2008-10-17 16:25 +0200, Robert Sösemann wrote:
how could I get all <model> nodes, that have a <competitor> node
inside them and its @id value must be "325d".
<data>
<model id="CLK 320 CDI Coupé">
<competitors>
<competitor id="325d"/>
</competitors>
</model>
<model id="CLK 320 CDI Coupé">
<competitors>
<competitor id="335d"/>
</competitors>
</model>
</data>
If competitor is guaranteed to be a grandchild, then:
model[competitors/competitor/@id='325d']
If competitor is an arbitrary descendant, then:
model[.//competitor/@id='325d']
I hope this helps.
. . . . . . . . . . Ken
--
Upcoming XSLT/XSL-FO hands-on courses: Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video sample lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg
Video course overview: http://www.youtube.com/watch?v=VTiodiij6gE
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--