Thanks McKay!!
This is my xml input
/QuoteObject/Insured/Quote/Location[UnitNumber = 'ID_25']
/BusinessAuto/Service/ServicePremiums/Worksheet/OtherThanCollision/SrvLot[Unit number =1]
/LossCost
this is how my output should look like
iso:GarageQuoteInqRs/iso:CommlAutoLineBusiness_EXTGarage/
iso:CommlGarageInfo_EXTGarage[LocationRef="ID_25",TypeOfBusinessCd_EXTGarage ='Service']
/iso:CommlCoverage_EXTProp[CoverageCd ='ServiceGaragePhysicalDamage',CoverageCdDesc='Ser vice Garage Physical Damage Coverage',Coverage',CoverageInd_EXTProp='1']
/iso:CreditOrSurcharge_EXTProp[CreditSurchargeCd='LossCostFactor']/iso:NumericValue/iso:FormatModFactor
& i need to write an xsl according to above structure.
My problem is, while considering the output structure, "iso:CommlGarageInfo_EXTGarage[LocationRef="ID_25",TypeOfBusinessCd_EXTGarage ='Service']"
i find LocationRef="ID_25",TypeOfBusinessCd_EXTGarage ='Service', what should i consider them as ?? attributes ?? child elements ?? if so, how should i write??
i have seen several examples , where LocationRef="ID_25" is written with condition & TypeOfBusinessCd_EXTGarage ='Service' is written within another tag(child tag).
am confused ?? plzz help me
|