OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
unable to render page in IE7 and safari browsers
This page's ID:
30321
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
hi, I created a xml file (Rss file) and with the help of xslt i tried to render it in browser. It works fine for all browsers other than safari and IE7, can any one help me to solve the issue... the xslt code is pasted below [code] <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"> <xslutput method="html"/> <xsl:variable name="title" select="/rss/channel/title"/> <xsl:template match="/"> <html> <head> <title><xsl:value-of select="$title"/> - RSS Feed</title> <style type="text/css"> </style> </head> <xsl:apply-templates select="rss/channel"/> </html> </xsl:template> <xsl:template match="channel"> <body onload="document.getElementById('podurl').value=wi ndow.location;"> <div id="main"> <div id="header"> <div class="topnavLeft"> <a href="/"> <img src="/imgs/global/logo-xx.jpg" width="64" height="22" border="0" alt="example" id="logo"/> </a> <div class="topnavLnks"></div> </div> <div class="topnavRight">Powered by <a href="http://www.example.com">example</a></div> </div> <div id="content"> <img id="podLogo"> <xsl:attribute name="src"> <xsl:value-of select="./itunes:image/@href"/> </xsl:attribute> </img><h2><xsl:value-of select="title"/></h2> <p id="description"><xsl:value-of select="./description"/></p> <div id="preview"> <b>Preview </b> <p>To preview the latest episode before subscribing, <a><xsl:attribute name="href"> <xsl:value-of select="./item/enclosure/@url"/> </xsl:attribute> download this file.</a></p></div> <div id="instructions"> <b>How do I subscribe to this podcast?</b> Feed URL:<br/> <input type="text" size="45" id="podurl" value="" onclick="this.select();"/> </div> <h3>Contents:</h3><xsl:apply-templates select="item"/> </div></div> </body> </xsl:template> <xsl:template match="item"> <div class="item"><p> <strong> <a><xsl:attribute name="href"><xsl:value-of select="./enclosure/@url"/> </xsl:attribute><xsl:value-of select="title"/></a> </strong><br/><xsl:value-of select="itunes:summary"/><br/> <em><xsl:value-of select="pubDate"/></em> </p></div> </xsl:template> </xsl:stylesheet> the rss file is below <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet title="XSL" type="text/xsl" href="/styles/rss-stylesheet.xsl.xml"?> <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"> <channel> <generator>example</generator> <ttl>60</ttl> <itunes:explicit>no</itunes:explicit> <title>fortesting</title> <link></link> <description></description> <language>en-us</language> <copyright>(c)</copyright> <itunes:subtitle></itunes:subtitle> <itunes:author></itunes:author> <ituneswner> <itunes:email></itunes:email> </ituneswner> <itunes:summary></itunes:summary> <image><url></url><title>for-example</title><link></link></image> <itunes:image href=""/> <item> <title>NewJob</title> <itunes:author>NewJob</itunes:author> <itunes:subtitle>subtitle</itunes:subtitle> <itunes:summary>summary </itunes:summary> <itunes:duration>1:01</itunes:duration> <itunes:keywords></itunes:keywords> <itunes:explicit>no</itunes:explicit> <guid isPermaLink="false"></guid> <pubDate>Fri, 4 Apr 2008 00:00:00 IST</pubDate> <enclosure url="http://example.com/audio/abcd.mp3" length="1734020" type="audio/x-mp3" /> </item> </channel> </rss> [/code] Edit TP: Adding code tags [small](Edited by [url=http://www.ozoneasylum.com/user/1424]Tyberius Prime[/url] on 06-12-2008 10:00)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »