How would I validate these links in xhtml 1.0 transitional? <a href="http://www.stumbleupon.com/submit?url=http://virtualguitar.net/live/boot.php" title="Stumbleupon"><img src="imgs/su.jpg" alt="stumble image" border="0"/>Stumble this</a> | <a href="http://del.icio.us/post?v=2&url=http://virtualguitar.net/live/boot.php" title="Delicious"><img src="imgs/del.jpg" alt="del image" border="0"/>Add to Delicious</a> Code (markup): I know there must be a way any ideas? Thanks in advance...
It is something to do with the ampersands.....Here is what is says: # Warning Line 102, Column 41: reference to external entity in attribute value. …href="http://del.icio.us/post?v=2&url=http://virtualguitar.net/live/index.php ✉ This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&'. # Error Line 102, Column 41: reference to entity "url" for which no system identifier could be generated. …href="http://del.icio.us/post?v=2&url=http://virtualguitar.net/live/index.php ✉ This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details. # Info Line 102, Column 37: entity was defined here. <a href="http://del.icio.us/post?v=2&url=http://virtualguitar.net/live/index.ph Code (markup):
It's trying to validate php, which it can't. Our insurance page uses Perl and gets the same result. HTML may not have &'s floating around by themselves; they must be represented as & or some other ascii or unicode version. Obviously you can't do that with these links. You'll have to ignore the errors so long as everything else validates. Your site will be googled normally or whatever and will work fine even with this validation "error" if that's what you're worried about. I know of no way to "hide" code links. Hope this helps.
If they're static and only a few, you can just ad the amp; yourself: http://del.icio.us/post?v=2&url=http://virtualguitar.net/live/boot.php