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

Pass an element based on its childrens content

Subject: Pass an element based on its childrens content
From: "CROFT, MICHAEL" <MCROFT@xxxxxxxxx>
Date: Tue, 4 Jun 2002 19:13:41 -0400
 Pass an element based on its childrens content
I need to pass an element to a template based on a condition where its
children would contain certain text(an id).  Here is an example xml element
I would need to pass....

<ListOfInsClaimsElements>
				<InsClaimsElements>
					<AssignmentDate/>
					<AssignmentExcluded/>
					<ClaimCoverage>Bodily
Injury</ClaimCoverage>
					<ClaimElementLimit/>
					<ClaimId>1-14YMG</ClaimId>
					<Claimant>Abrams</Claimant>
	
<ClaimantFirstName>Nancy</ClaimantFirstName>
					<ClaimantId/>
					<ContactId>1-16HHT</ContactId>
					<CurrencyCode>USD</CurrencyCode>
					<ElementClosedDate/>
	
<ElementDeductible>100</ElementDeductible>
				</InsClaimsElements>
				<InsClaimsElements>
					<AssignmentDate/>
					<AssignmentExcluded/>
					<ClaimCoverage>Bodily
Injury</ClaimCoverage>
					<ClaimElementLimit/>
					<ClaimId>1-14YMG</ClaimId>
					<Claimant>Abrams</Claimant>
	
<ClaimantFirstName>Nancy</ClaimantFirstName>
					<ClaimantId/>
					<ContactId>1-16HHT</ContactId>
					<CurrencyCode>USD</CurrencyCode>
					<ElementClosedDate/>
	
<ElementDeductible>100</ElementDeductible>
				</InsClaimsElements>
</ListOfInsClaimsElements>		

I need to find the specific list of claims elements
(ListOfInsClaimsElements) which contains the claims (InsClaimsElements) that
Im interested in (ClaimId).  There are multiple lists
(ListOfInsClaimsElements) within the xml document each containing possible
multiple claims (InsClaimsElements) but each list of claims belongs only to
one claimant.  So if Im working with Claimant A, I need to find the list
that contains Claimant A claims(i.e <ClaimId>A</ClaimId>), and pass the
entire list holding those claims (ListOfInsClaimsElements) to a template for
processing.

Mike





**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender and postmaster@xxxxxxxxxx
**********************************************************************
 


 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.