private void writeAttributes(Attributes atts) throws SAXException {
  int len=atts.getLength();
  for (int i=0; i < len; i++) {
    write(' ');
    writeName(atts.getURI(i),atts.getLocalName(i),atts.getQName(i),false);
    if (htmlMode && booleanAttribute(atts.getLocalName(i),atts.getQName(i),atts.getValue(i)))     break;
    write("=\"");
    String s=atts.getValue(i);
    writeEscUTF16(s,0,s.length(),true);
    write('"');
  }
}

private void writeAttributes ( Attributes atts ) throws SAXException { int len = atts . getLength ( ) ; for ( int i = 0 ; i < len ; i ++ ) { write ( ' ' ) ; writeName ( atts . getURI ( i ) , atts . getLocalName ( i ) , atts . getQName ( i ) , false ) ; if ( htmlMode && booleanAttribute ( atts . getLocalName ( i ) , atts . getQName ( i ) , atts . getValue ( i ) ) ) break ; write ( "=\"" ) ; String s = atts . getValue ( i ) ; writeEscUTF16 ( s , 0 , s . length ( ) , true ) ; write ( '"' ) ; } }
write out an attribute list , escaping values . < p > the names will have prefixes added to them .
