troubleshooting Question

JSP - XSL - Display in table

Avatar of vandy02
vandy02Flag for United States of America asked on
JSP
12 Comments1 Solution266 ViewsLast Modified:
I have the following xsl file placed in the code section below that I would like to display in a html table.  

Thanks
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" indent="yes" />
  <xsl:template match="/">
    <html>
      <head>
        <title>JSTL XML Support -- Transforming</title>
      </head>
      <body bgcolor="#98AFC7">
        <h3>Transforming an XML Document using XML tags</h3>              
        <xsl:apply-templates />
      </body>
    </html>
  </xsl:template>
 
  <xsl:template match="Author-Name">
    <!--printing the Last element-->
    LAST NAME :
    <xsl:apply-templates select="Last"/>
  </xsl:template>
 
  <xsl:template match="Last">
    <xsl:value-of select="text()" />
    <br />
  </xsl:template> 
 
  <xsl:template match="Book-Name" >
    <!--printing the BOOK-NAME element -->
    BOOK NAME : 
    <xsl:value-of select="text()" />
    <br />
  </xsl:template>
 
    <xsl:template match="Language" >
    <!--printing the BOOK-NAME element -->
    LANGUAGE :
    <xsl:value-of select="text()" />
    <hr />
  </xsl:template>
</xsl:stylesheet>
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 12 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 12 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