troubleshooting Question

XSLT Output with header...

Avatar of Larry Brister
Larry BristerFlag for United States of America asked on
HTMLXML
5 Comments1 Solution319 ViewsLast Modified:
I'm extremly new to xslt

Recieved excellent code at bottom from zc2.

How can I apply this Template ABOVE the bottom section?

DESIRED AT THE TOP...
   <xsl:template match="header">
        <xsl:value-of select="Client"/>
        <xsl:apply-templates select="Classification"/> --Sure this is wrong...
    </xsl:template>


THIS EXISTS and POPULATES  CORRECTLY
<xsl:output method="html" indent="yes" encoding="iso-8859-1"/>
        <xsl:key name="cl" match="Classification" use="@Name" />

        <xsl:template match="*[Classification]">
            <xsl:apply-templates select="Classification[generate-id(.) = generate-id( key('cl', @Name))]"/>
        </xsl:template>

        <xsl:template match="Classification">
            <div>
                Classification: <xsl:value-of select="@Name"/>
            </div>
            <xsl:for-each select="key('cl', @Name)">
                <div style="margin-left: 1em;">
                    Rule:<xsl:value-of select="@Rule"/>
                </div>
                <xsl:apply-templates select="ruleDetailRecord"/>
            </xsl:for-each>
        </xsl:template>

        <xsl:template match="ruleDetailRecord">
            <div style="margin-left: 2em;">
                <table cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td>
                            <xsl:value-of select="@DocDisplay"/>
                        </td>
                        <td>
                            <xsl:value-of select="@RuleSatisfactory"/>
                        </td>
                        <td>
                            <xsl:value-of select="@ReqSatisfactory"/>
                        </td>
                    </tr>
                </table>
            </div>
        </xsl:template>
ASKER CERTIFIED SOLUTION
zc2

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros