StarGateSG-1 Posted May 2, 2006 Share Posted May 2, 2006 Hello,My xml is comming up with an error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. --------------------------------------------------------------------------------The following tags were not closed: xsl:stylesheet, xsl:template. Error processing resource 'file://S205fs/0051400/Grade 12 Programming/Program/Quick_Report.xsl'.Here is the code from the xml file:<?xml version="1.0" encoding="iso-8859-1"?><?xml-stylesheet type="text/xsl" href="Quick_Report.xsl"?><Quick_Report> <Last_Week_Attend>100</Last_Week_Attend> <Last_Month_Attend>80</Last_Month_Attend> <Yesterday_Attend>45</Yesterday_Attend> <Total_Students>900</Total_Students> </Quick_Report> The code from the xsl file: <?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"><html><head><style type="text/css">th{text-align: center}td{text-align: center}</style><title>Attendance Report by Period</title></head><body><h2>Attendance Report Summary</h2><table border="1"><tr><th>Time Frame</th><th>Total Students</th><th>Percent Attend</th></tr><tr><th>Yesterdays Attendance</th><td>#<xsl:value-of select="Quick_Report/Total_Students"/></td><td>%<xsl:value-of select="Quick_Report/Yesterday_Attend"/></td></tr><tr><th>Last Weeks Attendance</th><td>#<xsl:value-of select="Quick_Report/Total_Students"/></td><td>%<xsl:value-of select="Quick_Report/Last_Week_Attend"/></td></tr><tr><th>Last Months Attendance</th><td>#<xsl:value-of select="Quick_Report/Total_Students"/></td><td>%<xsl:value-of select="Quick_Report/Last_Month_Attend"/></td></tr></table></body></html> Link to comment Share on other sites More sharing options...
boen_robot Posted May 2, 2006 Share Posted May 2, 2006 If this IS the whole XSLT code you have, then the error IE shows is completely straight and reasonable. You haven't closed <xsl:template> and <xsl:stylesheet>. Insert this at the bottom of your stylesheet: </xsl:template></xsl:stylesheet> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now