V
VMI
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:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- indicates what our output type is going to be -->
<xsl
utput 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:stylesheet>
Thanks for the help.
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:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- indicates what our output type is going to be -->
<xsl

<!--
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:stylesheet>
Thanks for the help.