code: public static String escapeAttributeValue(Object value, Context cx)
      {
          XMLLib xmlLib = currentXMLLib(cx);
          return xmlLib.escapeAttributeValue(value);
      }
docs: Escapes the reserved characters in a value of an attribute
  
  @param value Unescaped text
  @return The escaped text