Topic: unable to render page in IE7 and safari browsers (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=30321" title="Pages that link to Topic: unable to render page in IE7 and safari browsers (Page 1 of 1)" rel="nofollow" >Topic: unable to render page in IE7 and safari browsers <span class="small">(Page 1 of 1)</span>\

 
make
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Jun 2008

posted posted 06-12-2008 07:54

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>


Edit TP: Adding code tags

(Edited by Tyberius Prime on 06-12-2008 10:00)

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 06-12-2008 10:03

<xslutput would be a good candidate to start the fixing,
otherwise I have no input for you right now.

So long,

->Tyberius Prime

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 06-13-2008 01:56
quote:

make said:

<xslutput method="html"/>



hehehe....xslutput that just sounds funny

Later,

C:\

make
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jun 2008

posted posted 06-25-2008 09:00

.xslutput was a typing mistake the actual tag was xslutput



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu