|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Working with Multiple Stylesheets
I am attempting for the first time to use multiple stylesheets for maintainability. Each stylesheet will represent a section of a report. The main stylesheet looks like this... <xsl:include href="LossDetails.xsl"/> <xsl:include href="InvolvedPartiesWithProperty.xsl"/> <xsl:template match="/"> <html> <head> <title> <center>Auto Claim Telephone Report</center> </title> </head> <hr size="2"/> <B> <FONT SIZE="4"> <P ALIGN="CENTER">Automobile Telephone Report</P> </FONT> </B> <hr size="2"/> <body> <xsl:apply-templates /> </body> </html> </xsl:template> <xsl:template match="//InsClaims"> <xsl:call-template name="LossDetails"/> </xsl:template> <xsl:template match="//InsClaimsContact"> <xsl:call-template name="InvolvedPartiesWithProperty"/> </xsl:template> I dont know why the second template is not showing in the output in the browser. It seems the template never gets hit. I do see the output of the "LossDetails" template. Here is a sample included template...The other is very similiar except match = //InsClaimsContact <xsl:template match="//InsClaims" name="LossDetails"> <hr size="2" width="300" align="left"/> <B> <FONT size="4"> <P ALIGN="LEFT">Loss Details</P> </FONT> </B> <hr size="2" width="300" align="left"/> <li>Weather: <xsl:value-of select="Conditions"/> </li> <li>Place Of Loss: <xsl:value-of select="LossLocationAddress"/> </li> <li>Loss Description: <xsl:value-of select="LossDescription"/> </li> </xsl:template> Here is a sample of the xml... <SiebelMessage MessageId="1-8U" IntObjectFormat="Siebel Hierarchical" MessageType="Integration Object" IntObjectName="INS Claims"> <ListOfInsClaims> <InsClaims> <Conditions>Rainy</Conditions> <LossDate>05/20/2002 09:40:58</LossDate> <LossDescription>loss description</LossDescription> <LossLocationAddress>324 somewhere</LossLocationAddress> <LossLocationCity>Birmingham</LossLocationCity> <LossLocationCounty>Bahamas</LossLocationCounty> <LossLocationState>AL</LossLocationState> <LossLocationZip>35243</LossLocationZip> <LossTypeCode>Auto</LossTypeCode> <PolicyNumber>1-8MQ5</PolicyNumber> <ReportedBy>reported by</ReportedBy> <ReportedDate/> <RevisionNumber>54</RevisionNumber> <Suffix>D</Suffix> <ListOfINSClaims_FINCORPServiceProvider/> <ListOfInsClaimsAdverseClaimantContact> <InsClaimsAdverseClaimantContact> <ListOfAmicaContactServiceProvider> <AmicaContactServiceProvider> <AMICAServiceProviderStatus>Active</AMICAServiceProviderStatus> <MainFaxNumber>7046781234</MainFaxNumber> <MainPhoneNumber>7739091234</MainPhoneNumber> <Name2>aksf</Name2> <ListOfAMICAContactServiceProvider_BusinessAddress> <AMICAContactServiceProvider_BusinessAddress IsPrimaryMVG="N"> <City>Atlanta</City> <PostalCode>30020</PostalCode> <State>GA</State> <StreetAddress>21651</StreetAddress> </AMICAContactServiceProvider_BusinessAddress> <AMICAContactServiceProvider_BusinessAddress IsPrimaryMVG="Y"> <City>asdfaf</City> <PostalCode>09876</PostalCode> <State>RI</State> <StreetAddress>asf</StreetAddress> </AMICAContactServiceProvider_BusinessAddress> </ListOfAMICAContactServiceProvider_BusinessAddress> <ListOfAMICAContactServiceProvider_FINCORPServiceProviderSpecialty> <AMICAContactServiceProvider_FINCORPServiceProviderSpecialty IsPrimaryMVG="Y"> <SpecialtyName>Tax Advisor</SpecialtyName> </AMICAContactServiceProvider_FINCORPServiceProviderSpecialty> </ListOfAMICAContactServiceProvider_FINCORPServiceProviderSpecialty> </AmicaContactServiceProvider> </ListOfAmicaContactServiceProvider> <ListOfInsClaimsAdverseClaimant> <InsClaimsAdverseClaimant> <AMICAAirConditioning>Y</AMICAAirConditioning> <AMICAAllWheelDrive>Y</AMICAAllWheelDrive> <AMICAAlloyWheels>Y</AMICAAlloyWheels> <VehicleMake>BMW</VehicleMake> <VehicleModel>328</VehicleModel> <VehicleYear>2000</VehicleYear> <Zip>30080</Zip> <ListOfAmicaServiceProvider> <AmicaServiceProvider> <AMICAServiceProviderStatus>1 - Guaranteed</AMICAServiceProviderStatus> <MainFaxNumber>4447778541</MainFaxNumber> <MainPhoneNumber>7704386717</MainPhoneNumber> <Name2>TT Ser</Name2> <ListOfAMICAServiceProvider_BusinessAddress> <AMICAServiceProvider_BusinessAddress IsPrimaryMVG="Y"> <City>Bloomington</City> <PostalCode/> <State>IL</State> <StreetAddress>150 Frank Lane</StreetAddress> </AMICAServiceProvider_BusinessAddress> </ListOfAMICAServiceProvider_BusinessAddress> <ListOfAMICAServiceProvider_FINCORPServiceProviderSpecialty> <AMICAServiceProvider_FINCORPServiceProviderSpecialty IsPrimaryMVG="N"> <SpecialtyName>Accountant</SpecialtyName> </AMICAServiceProvider_FINCORPServiceProviderSpecialty> <AMICAServiceProvider_FINCORPServiceProviderSpecialty IsPrimaryMVG="N"> <SpecialtyName>Business Planner</SpecialtyName> </AMICAServiceProvider_FINCORPServiceProviderSpecialty> <AMICAServiceProvider_FINCORPServiceProviderSpecialty IsPrimaryMVG="Y"> <SpecialtyName>Financial Advisor</SpecialtyName> </AMICAServiceProvider_FINCORPServiceProviderSpecialty> </ListOfAMICAServiceProvider_FINCORPServiceProviderSpecialty> </AmicaServiceProvider> </ListOfAmicaServiceProvider> </InsClaimsAdverseClaimant> </ListOfInsClaimsAdverseClaimant> </InsClaimsAdverseClaimantContact> <InsClaimsAdverseClaimantContact> <ListOfAmicaContactServiceProvider/> <ListOfInsClaimsAdverseClaimant/> </InsClaimsAdverseClaimantContact> </ListOfInsClaimsAdverseClaimantContact> <ListOfInsClaimsContact> <InsClaimsContact> <AMICAAdmittedDate>05/16/2002 00:00:00</AMICAAdmittedDate> <AMICADriversLicenseNumber>2542</AMICADriversLicenseNumber> <AMICADriversLicenseState>AZ</AMICADriversLicenseState> <AMICAFatality>Y</AMICAFatality> <AMICAInjured>Y</AMICAInjured> Can anyone see why the second template in the main stylesheet is not showing in the output, Im new at XSLT 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








