Writing XML to html with XSLT

From: VMI (vonchi_m_at_yahoo.com)
Date: 12/15/04


Date: Wed, 15 Dec 2004 13:22:19 -0400

I'm having trouble writing several records from an XML file into an html
file. The problem is that it only outputs one record to the html file. I
need to export all the records in the xml file to html. How can I do this?
Is there a better (and easier) way to export a dataset to a
'friendly-printer' format? The resulting XML file is hard to understand if
printed, and that's why I'm using XLST.

This is what the xsl file looks like. Can I add a loop to it?:

<xsl:style***
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">

<!-- indicates what our output type is going to be -->
<xsl:output method="html" />

 <!--
  Main template to kick off processing our Sample.xml
  From here on we use a simple XPath selection query to
  get to our data.
 -->
 <xsl:template match="/">

  <html>

   <head>

    <title>Printout</title>

    <style>
     body,td {font-family:Tahoma,Arial; font-size:9pt;}
    </style>

   </head>

   <body>
    <xsl:value-of select="/dsXML/audit/InKey"/>
    <br/>
    <xsl:value-of select="/dsXML/audit/InFBU"/>
    <br/>
    <xsl:value-of select="/dsXML/audit/OutDel"/>
    <br/>
    <xsl:value-of select="/dsXML/audit/OutCity"/>
    <br/>
   </body>

  </html>

 </xsl:template>

</xsl:style***>

Thanks for the help.


Loading