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

Finding a specific element and outputting another rela

Subject: Finding a specific element and outputting another related elements value
From: "Linda Zammit" <lzammit@xxxxxxxxxxx>
Date: Tue, 10 Jul 2001 15:00:16 -0400
 Finding a specific element and outputting another rela
Hello all,
I don't know if this is possible:

I need to output the contents of one element dependant on the previous
elements content (i.e. if RemarkQualifier=DIMENSIONS then output '24 @
48"X48"X48"'.

XML:
<Release>
	<OrderRemark>
		<RemarkQualifier>DIMENSIONS</RemarkQualifier>
		<RemarkText>24 @ 48"X48"X48"</RemarkText>
	</OrderRemark>
</Release>
<Release>
	<OrderRemark>
		<RemarkQualifier>PIECES</RemarkQualifier>
		<RemarkText>24</RemarkText>
	</OrderRemark>
</Release>


This is what I had, but it doesn't work - all I obtain is the
RemarkQualifier.  I have also tried 'key' and all sorts of other stuff...


<xsl:value-of select="OrderRemark"/>
<xsl:for-each select="//RemarkQualifier">
<xsl:if test="//RemarkQualifer='PIECES'">
<xsl:for-each select="//RemarkText"/>
</xsl:if>
</xsl:for-each>

Thanks very much in advance!!!!
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.264 / Virus Database: 136 - Release Date: 7/2/2001


 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.