I have created a SSIS package that spits out an XML document, hourly. But in order to display, I need an accompanied XSLT, but I am getting stuck.
The query uses FOR XML RAW that outputs one line:
<Census Day="for 01/01/01" Total="999"/>
I want to create a XSLT to display this, but i have not been able to figure out how, or if that's even possible. This is what I have so far:
<?xml version="1.0" encoding="UTF-8"?>
<body style="font-family:Arial;font-size:16pt;background-color:#EEEEEE">
<xsl:for-each select="Census">
<div style="background-color:white;color:black;padding:10px">
<span style="font-weight:bold"><xsl:value-of select="Day"/> - <xsl:value-of select="Total"/>
</span>
</div>
</xsl:for-each>
</body>
</html>
When i reconfigure the XML to:
<Census>
<Day>for 01/01/01</Day>
<Total>999</Total>
</Census>
I can then easily configure XSLT.
Just curious if it would be possible to create one based on the original. Or if anyone see's where I am going wrong.
Thanks!
Andy