XHTML Standard

Since the structure browser is driven by XML, the only way to insert HTML into the document is to insert it in the XML. Because of this, programHTML has to conform to the XHTML standard.

The following lists the most important changes to make.


  • All tags need to be closed.

    For example (note the xml style closing backslash ^/>^):

    RefDes = ^<img src='../common/images/iconStatusAlert.gif' 
    border='0' alt='^+incompatibleFormatAlt+^' 
    title='^+incompatibleFormatAlt+^'/>&#160;^+RefDes;
    
  • Use &#160; instead of &nbsp;
  • In URLs the & character will cause an error. Use &amp;

    For example:

    columnVals.addElement(^<a 
    href=\^javascript:emxTableColumnLinkClick('../
    engineeringcentral/
    emxpartEditEBOMDialogFS.jsp?emxSuiteDirectory=engineeringcentra
    l&amp;relId=^+relId+^&amp;suiteKey=EngineeringCentral&amp;paren
    tOID=^+parentId+^&amp;objectId=^+id+^', '700', '600', 'false', 
    'popup', '')\^><img border=\^0\^ src=\^images/
    iconActionEdit.gif\^ alt=\^\^/></a>^);
    
  • All attributes need quotes.
      src='../common/images/iconStatusAlert.gif' border='0'
    

    Or

      border=\^0\^ src=\^images/iconActionEdit.gif\^
    
  • All images must have a height attribute of NOT more than 16.
      <img height=\^16\^>