Stylesheet to change elment's name
I have the following XML
<ExternalAssessmentRequest>
<ApplicationData Lender="MegaBank">
<LiabilityList>
<RequestedLoans>
<Applicants Percentage="0.5" RelatedIdentifier="Applicant1"/>
<Applicants Percentage="0.5" RelatedIdentifier="Applicant2"/>
<Features Code="Test"/>
</RequestedLoans>
<ExistingLoans>
<Securities RelatedIdentifier="Test"/>
<Applicants Percentage="0.5" RelatedIdentifier="Applicant1"/>
<Applicants Percentage="0.5" RelatedIdentifier="Applicant2"/>
</ExistingLoans>
<OtherLiabilities >
<Applicants Percentage="0.5" RelatedIdentifier="Applicant1"/>
<Applicants Percentage="0.5" RelatedIdentifier="Applicant2"/>
</OtherLiabilities>
<Expenses Amount="50" Description="Train Ticket"
Identifier="Expense1" NonRecurring="Yes" Type="Transport"
Year="2013">
<Applicants Percentage="0.5" RelatedIdentifier="Applicant1"/>
<Applicants Percentage="0.5" RelatedIdentifier="Applicant2"/>
</Expenses>
</LiabilityList>
<AssetList>
<Assets >
<Applicants Percentage="0.5" RelatedIdentifier="Applicant1"/>
<Applicants Percentage="0.5" RelatedIdentifier="Applicant2"/>
</Assets>
<Funds Amount="1000" Description="Slush Fund"
Identifier="Fund1"/>
</AssetList>
<IncomeList>
<Incomes >
<Applicants Percentage="0.5" RelatedIdentifier="Applicant1"/>
<Applicants Percentage="0.5" RelatedIdentifier="Applicant2"/>
</Incomes>
</IncomeList>
<ApplicantList>
<Households AdditionalAdults="0" Boarding="Yes" Children="0"
Description="1 Test St, Sydney" Postcode="2000">
<Persons CountryOfResidence="Australia"
CustomerDurationInMonths="0" DischargedBankrupts="0"
Identifier="Applicant1" Name="John Smith"
Partner="Applicant2" Partnered="Yes"
PermanentResident="Yes"/>
<Persons CountryOfResidence="Australia"
CustomerDurationInMonths="0" DischargedBankrupts="0"
Identifier="Applicant2" Name="Jane Smith"
Partner="Applicant1" Partnered="Yes"
PermanentResident="Yes"/>
<Guarantors/>
</Households>
<Companies Identifier="Company1" Name="Tardis">
<Directors RelatedIdentifier="Applicant1"/>
</Companies>
</ApplicantList>
<FeeList>
<Fees Amount="100" Capitalised="Yes"
DateOfPayment="1967-08-13" Description="Application Fee"
Identifier="Fee1" PaidAmount="0"/>
</FeeList>
</ApplicationData>
<AdditionalAssessments Lender="MegaBank">
<RequestedLoans Product="Supa Variable" ProductID="Product2"/>
</AdditionalAssessments>
</ExternalAssessmentRequest>
I need a xsl style sheet to change all the element's names that are plural
to singular. For example RequestedLoans = RequestedLoan, Companies =
Company and so on.
Really appreciate your help if anyone can help me. Regards
No comments:
Post a Comment