Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apply templates problem

Status
Not open for further replies.

markgravitygood

Programmer
Joined
Jan 9, 2008
Messages
3
Location
US
My XML:

<CLAIMS><CLAIM>
<SERVICE_LINE>
</SERVICE_LINE>
<SERVICE_LINE>
</SERVICE_LINE>
<SERVICE_LINE>
</SERVICE_LINE>
<SERVICE_LINE>
</SERVICE_LINE>
<SERVICE_LINE>
</SERVICE_LINE>
</CLAIM>
</CLAIMS>

MY apply-templates code for the CLAIMS/CLAIM level works fine, but I cannot get the apply-templates for the CLAIMS/CLAIM/SERVICE_LINE to work. The SERVICE_LINE element can repeat many times within the CLAIM. How do I do this?

Thanks,
Mark
 
More info pseudo-code. I am trying this and it does not work:

<xsl:apply-templates select="CLAIMS/CLAIM"/>
</body>
</html>
</xsl:template>
<xsl:template match="CLAIMS/CLAIM">
... More stuff here that renders fine ...

... This apply-templates breaks it. If I remove this, the CLAIM section renders fine ...
<xsl:apply-templates select="SERVICE_LINE"/>
</xsl:template>

</xsl:template>
<xsl:template match="SERVICE_LINE">
... Service Line specific info ...
</xsl:template>
 
That can only mean template for SERVICE_LINE contains error.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top