ciao, ho un problema che è da un bel pò che nn riesco a risolvere.ho aggiunto in una pagina del mio sito i feed rss della gazzetta e del fantacalcio.ora quando valido la pagina ci son ben 63 errori che prima dei feed nn c'erano,qualcuno sa dirmi come posso risolvere la cosa?
questi sono alcuni esempi di errore
ovvio che io nella pagina queste linee nn le ho xchè vengono create dal feed(e validando la pagina del feed in questione nn ho questi errori).codice:Error Line 144 column 44: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified. ...dl><dt>Fantacalcio</dt><dd><a target=_blank href=http://www.fantacalcio.kataw ✉ Error Line 144 column 56: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified. ...calcio</dt><dd><a target=_blank href=http://www.fantacalcio.kataweb.it/index. ✉ Error Line 144 column 62: NET-enabling start-tag not immediately followed by null end-tag. ...</dt><dd><a target=_blank href=http://www.fantacalcio.kataweb.it/index.php?pa This error may occur when there is a mistake in how a self-closing tag is closed, e.g '.../ >'. The proper syntax is '... />' (note the position of the space).
questo è il codice nella pagina html che implementa il feed
ovvio che i vari spezzoni di codice vivono in vari punti della pagina in questione.codice:<% Dim NumFeeds NumFeeds = 1 ReDim ArrUrls(NumFeeds) ReDim ArrNums(NumFeeds) ArrUrls(0) = "http://www.gazzetta.it/rss/Calcio.xml" ArrNums(0) = 6 %> <% Dim NumFeedsFanta NumFeedsFanta = 1 ReDim ArrUrlsFanta(NumFeedsFanta) ReDim ArrNumsFanta(NumFeedsFanta) ArrUrlsFanta(0) = "http://www.fantacalcio.kataweb.it/image/rss/feed.xml" ArrNumsFanta(0) = 6 %> <% For i = 0 to NumFeedsFanta-1 call PrintFeed(ArrUrlsFanta(i),ArrNumsFanta(i)) Next %> </div> <div id="feedStyle"> <% For i = 0 to NumFeeds-1 call PrintFeed(ArrUrls(i),ArrNums(i)) Next %> </div> <script language="vbscript" runat="server"> Sub PrintFeed(url,NumNews) html = "" Set XMLdoc = Server.CreateObject("msxml2.DOMDocument.3.0") XMLdoc.async = false XMLdoc.setProperty "ServerHTTPRequest", True XMLdoc.validateOnParse =false XMLdoc.preserveWhiteSpace = false Loaded = XMLdoc.Load(url) If Loaded Then set NodesList = XMLdoc.getElementsByTagName("channel") For Each aNode In NodesList For Each aNode2 In aNode.childNodes Select Case aNode2.nodeName Case "title" html = html & "<dt>" & aNode2.firstChild.nodevalue & "</dt>" End Select Next Next Set NodesList = XMLdoc.getElementsByTagName("item") j = 0 For Each aNode In NodesList j = j + 1 For Each aNode2 In aNode.childNodes Select Case aNode2.nodeName Case "title" strTitle = aNode2.firstChild.nodevalue Case "link" strURL = aNode2.firstChild.nodevalue End Select Next html = html & "<dd>" & strTitle & "</dd>" strTitle = "" strURL = "" strDescription = "" if (j >= NumNews) Then Exit For Next html = "<dl>" & html & "</dl>" set NodesList = Nothing End if Response.write (html) End Sub </script>
questo è il css
grazie anche solo per le "spinte" che riuscirete a darmi, io nn me ne intendo molto.....ciaocodice:#feedStyle dl { font-family:Verdana, Arial, Helvetica, sans-serif; margin-top: 4px; margin-left: 0px; padding-bottom: 8px; border-bottom: 3px solid #999999; border-left: 3px solid #999999; border-right: 3px solid #999999; background: #E6E6E6; } #feedStyle dl dt { font-size: 14px; font-weight: bold; color: #333333; text-align: left; padding-right: 5px; padding-left: 5px; background: #999999; } #feedStyle dl dd { font-size: 10px; color: #000; line-height: 1em; margin-top: 4px; margin-left:0px; padding-left: 5px; } #feedStyle dl dd a { color: #333333; text-decoration: none; } #feedStyle #colMenu dl dd a:visited { color: #00FF00; text-decoration: none; } #feedStyle dl dd a:hover, #colMenu dl dd a:active { color: #666666; text-decoration: underline; } #feedStyleFanta dl { font-family:Verdana, Arial, Helvetica, sans-serif; margin-top: 4px; margin-left: 0px; padding-bottom: 8px; border-bottom: 3px solid #999999; border-left: 3px solid #999999; border-right: 3px solid #999999; background: #E6E6E6; } #feedStyleFanta dl dt { font-size: 14px; font-weight: bold; color: #333333; text-align: left; padding-right: 5px; padding-left: 5px; background: #999999; } #feedStyleFanta dl dd { font-size: 10px; color: #000; line-height: 1em; margin-top: 4px; margin-left:0px; padding-left: 5px; } #feedStyleFanta dl dd a { color: #333333; text-decoration: none; } #feedStyleFanta #colMenu dl dd a:visited { color: #00FF00; text-decoration: none; } #feedStyleFanta dl dd a:hover, #colMenu dl dd a:active { color: #666666; text-decoration: underline; }

 
			
			 
					
					
					
						 Rispondi quotando
  Rispondi quotando