<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'JAVASCRIPT + ADD DTD = NOT WORKING' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'JAVASCRIPT + ADD DTD = NOT WORKING' posted on the 'Internet Development' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 18 Jun 2013 00:32:22 -0700</pubDate>
    <lastBuildDate>Tue, 18 Jun 2013 00:32:22 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>JAVASCRIPT + ADD DTD = NOT WORKING</title>
      <link>http://www.programmersheaven.com/mb/internet/414645/414645/javascript-+-add-dtd--not-working/</link>
      <description>Im using XSL and javascript and im trying to do the below function in javascript. The &amp;amp;lt; is in place of a '&amp;lt;' becuase XSL gets confused if you do that. &lt;br /&gt;
&lt;br /&gt;
The problem now is that it 'compiles' but when i open the page in IE, FF, SF.... none of the javascript works becuase now it is crashing at the &amp;amp;lt; bit...&lt;br /&gt;
&lt;br /&gt;
ALL of this worked before I had put in the decleration for the XHTML transitional DTD... and now it suddenly doesnt work... i have tried absolutely everything and have been google'ing for days!!!! PLEASE HELP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
JS CODE&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;    function init() 
    {
 

    
	var height= screen.height;
	
	    if(height&amp;amp;lt;350)
	{
		document.getElementById('contentstyle').style.font
Size="16px";
		document.getElementById('title').style.fontSize="1
8px";
		    document.getElementById('inlineimage').style.width
="50%";
		
	}
	

     } &lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XHTML DECLERATION&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-1"?&amp;gt;
&amp;lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&amp;gt;
&amp;lt;xsl:output method="xml" indent="yes" 
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" /&amp;gt;



&amp;lt;xsl:template match="/"&amp;gt;
  &amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;  
............&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/internet/414645/414645/javascript-+-add-dtd--not-working/</guid>
      <pubDate>Wed, 17 Mar 2010 06:48:15 -0700</pubDate>
      <category>Internet Development</category>
    </item>
  </channel>
</rss>