This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Pass an element based on its childrens content
- From: "CROFT, MICHAEL" <MCROFT at amica dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 4 Jun 2002 18:29:17 -0400
- Subject: [xsl] Pass an element based on its childrens content
- Reply-to: xsl-list at lists dot mulberrytech dot com
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 list of claims elements (ListOfInsClaimsElements) which
contains the claims (InsClaimsElements) that Im interested in (ClaimId).
THen I would pass this entire list to a called template for processing.
THere are multiple lists within the xml document each with possible multiple
claims but each list of claims only belongs to one claimant.
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@amica.com.
**********************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list