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

XPath Question.

Subject: XPath Question.
From: "Avula, Raj" <RAvula@xxxxxxxxxxx>
Date: Thu, 20 Dec 2001 18:08:28 -0800
 XPath Question.

Hi All,
	My XML file is some thing like this

	<Customer>
		<Order>
			<OrderId>1001</OrderId>
		</Order>
		<Order>
			<OrderId>1002/OrderId>
		</Order>
		<Order>
			<OrderId>1003</OrderId>
		</Order>
		<Order>
			<OrderId>1004</OrderId>
		</Order>
		<Order>
			<OrderId>1007</OrderId>
		</Order>
		<Order>
			<OrderId>1009</OrderId>
		</Order>
	</Customer>

I have to print the output by mapping the codes
	1001 - 1
	1002 - 2
	1003 - 3
	1004 - 4
If any OrderId is not in the above mapping table, I have to print 99.

Output will be something like this:
OUT*1*2*3*4*99*99

My Problem here is if I have more than one OrderId codes that does not match
the mapping table, I have to print only one 99.

Can any body help me, on How I can do that.

Thanks,
Raj..



"MMS <firstam.com>" made the following
 annotations on 12/20/01 18:09:34
------------------------------------------------------------------------------
"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED SOLELY FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN CONFIDENTIAL, PROPRIETARY OR PRIVILEGED INFORMATION.  IF YOU ARE NOT THE ADDRESSEE INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS MESSAGE TO SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE THIS MESSAGE OR ANY FILES TRANSMITTED HEREWITH.  IF YOU RECEIVE THIS MESSAGE IN ERROR, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS MESSAGE AND ALL COPIES OF IT FROM YOUR SYSTEM."

==============================================================================


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • XPath Question.
    • Avula, Raj - Thu, 20 Dec 2001 21:09:26 -0500 (EST) <=
      • <Possible follow-ups>
      • Avula, Raj - Fri, 21 Dec 2001 13:53:07 -0500 (EST)
        • yan bai - Fri, 21 Dec 2001 14:35:24 -0500 (EST)

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.