Thursday, 15 August 2013

internet explorer - xml page cannot be displayed -



internet explorer - xml page cannot be displayed -

xml:

<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="pr7.xsl"?> <patients> <patient1> <name> <fname>kakar</fname> <lname>nyori</lname> </name> <age>20</age> <ssn>20202</ssn> <room>101</room> <id>2929</id> <groupno>22</groupno> <address>mathikere</address> </patient1> </patients>

xsl:

<?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> <body> <h2>patient information</h2> <table> <tr> <th>name</th> <th>age</th> <th>ssn</th> <th>room</th> <th>id</th> <th>groupno</th> <th>address</th> </tr> <tr> <td><xsl:value-of select="patients/patient1/name"/></td> <td><xsl:value-of select="patients/patient1/age"/></td> <td><xsl:value-of select="patients/patient1/ssn"/></td> <td><xsl:value-of select="patients/patient1/room"/></td> <td><xsl:value-of select="patients/patient1/id"/></td> <td><xsl:value-of select="patients/patient1/groupno"/></td> <td><xsl:value-of select="patients/patient1/address"/></td> </tr> </table> </body> </html> </xsl:template> </xsl:stylesheet>

if view in chrome, not throw errors. in net explorer throws error:

cannot view xml input using xsl style sheet. please right error , click refresh button, or seek 1 time again later. -------------------------------------------------------------------------------- namespace prefix not allowed start reserved string "xml". error processing resource 'file:///c:/users/ad... <xml:template match="/patients">

what doing wrong? please help me solve this. appreciate if help me. give thanks you.

xml internet-explorer xslt

No comments:

Post a Comment