This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
[XSL] Multiple relationships
- From: "Craig Stewart" <cstewart at fbfs dot com>
- To: XSL-List at lists dot mulberrytech dot com
- Date: Fri, 3 May 2002 10:17:38 -0500
- Subject: [xsl] [XSL] Multiple relationships
- Reply-to: xsl-list at lists dot mulberrytech dot com
I need to select the relationship type that fits some rules and display only
that relationship and the party information that goes with it. Any suggestions
as to how to code the XSL to do this? I have an XML file with party's linked to
relationships like this:
<Party id="Party_1">
<FullName>Craig Stewart</FullName>
<Person>
<FirstName/>
<LastName/>
<BirthDate>06/17/1996</BirthDate>
<SmokerStat tc="3">
Non-Tobacco
</SmokerStat>
</Person>
<Address>
<Line1>2162 GROVER LN</Line1>
<Line2/>
<Line3/>
<City>CEDAR RAPIDS</City>
<AddressState>IA</AddressState>
<Zip>52404</Zip>
</Address>
<Phone>
<AreaCode>316</AreaCode>
<DialNumber>7971895</DialNumber>
</Phone>
<Carrier/>
<Client/>
</Party>
<Party id="Party_2">
<FullName>Ann Stewart</FullName>
<Person/>
<Address>
<Line1>1718 4TH ST CT</Line1>
<Line2/>
<Line3/>
<City>EAST MOLINE</City>
<AddressState>IL</AddressState>
<Zip>61244</Zip>
</Address>
<Phone>
<AreaCode/>
<DialNumber/>
</Phone>
<Carrier/>
<Client/>
</Party>
<Party id="Party_3">
<FullName>Ann Stewart</FullName>
<Person/>
<Address>
<Line1>1718 4TH ST CT</Line1>
<Line2/>
<Line3/>
<City>EAST MOLINE</City>
<AddressState>IL</AddressState>
<Zip>61244</Zip>
</Address>
<Phone>
<AreaCode/>
<DialNumber/>
</Phone>
<Carrier/>
<Client/>
</Party>
<Party id="Party_4">
<FullName>Ann Stewart</FullName>
<Person/>
<Address>
<Line1>1718 4TH ST CT</Line1>
<Line2/>
<Line3/>
<City>EAST MOLINE</City>
<AddressState>IL</AddressState>
<Zip>61244</Zip>
</Address>
<Phone>
<AreaCode/>
<DialNumber/>
</Phone>
<Carrier/>
<Client/>
</Party>
<Relation id="Relation_1" OriginatingObjectID="Holding_1" RelatedObjectID="
Party_1">
<OriginatingObjectType tc="4">Holding</OriginatingObjectType>
<RelatedObjectType tc="6">Party</RelatedObjectType>
<RelationRoleCode tc="1">Insured</RelationRoleCode>
</Relation>
<Relation id="Relation_2" OriginatingObjectID="Holding_1" RelatedObjectID="
Party_2">
<OriginatingObjectType tc="4">Holding</OriginatingObjectType>
<RelatedObjectType tc="6">Party</RelatedObjectType>
<RelationRoleCode tc="2">Owner</RelationRoleCode>
</Relation>
<Relation id="Relation_3" OriginatingObjectID="Holding_1" RelatedObjectID="
Party_3">
<OriginatingObjectType tc="4">Holding</OriginatingObjectType>
<RelatedObjectType tc="6">Party</RelatedObjectType>
<RelationRoleCode tc="3">Premium Payor</RelationRoleCode>
</Relation>
<Relation id="Relation_4" OriginatingObjectID="Holding_1" RelatedObjectID="
Party_4">
<OriginatingObjectType tc="4">Holding</OriginatingObjectType>
<RelatedObjectType tc="6">Party</RelatedObjectType>
<RelationRoleCode tc="4">Primary Beneficiary</RelationRoleCode>
</Relation>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list