Snatch Posted January 8, 2008 Share Posted January 8, 2008 Hi i'm using the following XSL to display an XML page: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="ISO-8859-1" version="1.0" omit-xml-declaration="yes" media-type="text/html" indent="yes" /> <xsl:template match="/"> <html> <head> <title>Shaw News</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> body {background-image: url(images/main-bg.gif); } </style> </head> <body> <p> <a href="index.php">Home</a> </p> <xsl:for-each select="catagory/news [importance='High']"> <p> <xsl:value-of select="@id" /><br /> Title: <xsl:value-of select="title" /><br /> Author: <i><xsl:value-of select="author/firstname"/>:<xsl:value-of select="author/lastname"/></i><br /> Story: <xsl:value-of select="content"/> </p> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet> It works fine in IE but not in FireFox (displays as one long string). Can anyone tell me why this is please? Link to comment https://forums.phpfreaks.com/topic/85046-xsl-wont-work-in-firefox/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.