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

RE: Testing values from parent nodes

Subject: RE: Testing values from parent nodes
From: "SMITH Neil" <neil.smith@xxxxxxxx>
Date: Wed, 26 May 2004 11:06:53 +0200
xsl from parent
<RR>
	<RR_row>
		<ind_no>81723</ind_no>
		<pos_acad_m_no>1</pos_acad_m_no>
		<pos_acad_lib>Emeritierte(r) Professor(in)</pos_acad_lib>
		<et25_lng>2</et25_lng>
		<RR_group1>
			<gr_no>330</gr_no>
			<gr_nom>Analysis: Gruppe Kaup</gr_nom>
			<RR_group2>
				<type>1</type>
				<type_lib>Publications</type_lib>
				<RR_group3>
					<cle>15381</cle>
					<RR_group4>
						<ordre>10</ordre>
						<text>G. Bissig: \ber die Stabilitdt separierbarer Bldtterungen. Dissertation Fribourg, Juni 2002</text>
						<date_debut/>
						<date_fin/>
						<financement/>
							<montant>0</montant>
					</RR_group4>
				</RR_group3>
			</RR_group2>


Here is a part of my XML file that I am parsing to HTML.
Here is my problem, I would like to test the value of /RR/RR_Row/RR_group1[type=1]  while I am parsing the values of the RR_group4 node (the output is not the same depending on the type).

I tried :
        <xsl:if test="ancestor::RR/RR_row/RR_group1/RR_group2[type=1]">
		But that doesn't work (crashes XMLSPY...)
	<xsl:if test="/RR/RR_row/RR_group1/RR_group2[type=1]">
		Same same...


Could someone please help me as I have been stuck on this for a couple of days now...

Thanks a lot
Best regards,
Neil.



Neil Smith
Analyste Programmeur
Universiti de Fribourg
Av. de l'Europe 20
CH - 1700 Fribourg
Til. +41 26 300 7091

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.