views:

77

answers:

1

The following code can be embedded on a website to add windows live messenger functionality. Is there any way to make this XHTML 1.0 Translitional compliant?

        <div
          id="Microsoft_Live_Messenger_PresenceButton_e17530aa6eff7871"
          msgr:width="100"
          msgr:backColor="#DBDBDB"
          msgr:altBackColor="#FFFFFF"
          msgr:foreColor="#424542"
          msgr:conversationUrl="http://settings.messenger.live.com/Conversation/[email protected]&amp;mkt=de-DE&amp;useTheme=true&amp;themeName=gray&amp;foreColor=676769&amp;backColor=DBDBDB&amp;linkColor=444444&amp;borderColor=8D8D8D&amp;buttonForeColor=99CC33&amp;buttonBackColor=676769&amp;buttonBorderColor=99CC33&amp;buttonDisabledColor=F1F1F1&amp;headerForeColor=729527&amp;headerBackColor=B2B2B2&amp;menuForeColor=676769&amp;menuBackColor=BBBBBB&amp;chatForeColor=99CC33&amp;chatBackColor=EAEAEA&amp;chatDisabledColor=B2B2B2&amp;chatErrorColor=760502&amp;chatLabelColor=6E6C6C"&gt;&lt;/div&gt;
        <script type="text/javascript" src="http://messenger.services.live.com/users/[email protected]/presence?dt=&amp;mkt=de-DE&amp;cb=Microsoft_Live_Messenger_PresenceButton_onPresence"&gt;&lt;/script&gt;
+1  A: 

In XHTML, the ampersand always initiates an entity. Therefore, you need to replace all ampersands with &amp; to get valid XML.

Since XHTML1.0 is specified in a DTD and DTDs can not handle namespaces, the code will never be technically valid XHTML1.0 Transitional. Anyway, any sane application will treat it as such.

phihag