[bugfix] I changed the way that ElementImpl.appendChild calculates an element's attribute count. The previous calculation didn't make sense, and resulted in a NullPointerException in removeAppendAttributes later if an element had a namespace but did not have any other attributes. Port of rev 7579.
[bugfix] I changed the way that ElementImpl.appendChild calculates an element's attribute count. The previous calculation didn't make sense, and resulted in a NullPointerException in removeAppendAttributes later if an element had a namespace but did not have any other attributes. Port of rev 7579.

svn path=/branches/eXist-stable-1.2/; revision=7597

zwobit/exist,windauer/exist,jensopetersen/exist,joewiz/exist,ljo/exist,hungerburg/exist,adamretter/exist,hungerburg/exist,RemiKoutcherawy/exist,MjAbuz/exist,kohsah/exist,kohsah/exist,jessealama/exist,adamretter/exist,MjAbuz/exist,wshager/exist,wshager/exist,wshager/exist,ljo/exist,RemiKoutcherawy/exist,windauer/exist,shabanovd/exist,ljo/exist,ambs/exist,zwobit/exist,zwobit/exist,jensopetersen/exist,jessealama/exist,ljo/exist,patczar/exist,hungerburg/exist,MjAbuz/exist,RemiKoutcherawy/exist,zwobit/exist,RemiKoutcherawy/exist,dizzzz/exist,eXist-db/exist,eXist-db/exist,eXist-db/exist,shabanovd/exist,wshager/exist,dizzzz/exist,wolfgangmm/exist,joewiz/exist,eXist-db/exist,windauer/exist,eXist-db/exist,jessealama/exist,dizzzz/exist,kohsah/exist,jensopetersen/exist,joewiz/exist,ambs/exist,RemiKoutcherawy/exist,ambs/exist,lcahlander/exist,eXist-db/exist,MjAbuz/exist,joewiz/exist,ambs/exist,lcahlander/exist,dizzzz/exist,wolfgangmm/exist,patczar/exist,opax/exist,kohsah/exist,kohsah/exist,patczar/exist,jensopetersen/exist,dizzzz/exist,patczar/exist,shabanovd/exist,jessealama/exist,wolfgangmm/exist,lcahlander/exist,opax/exist,opax/exist,jensopetersen/exist,MjAbuz/exist,wolfgangmm/exist,wshager/exist,shabanovd/exist,ambs/exist,opax/exist,kohsah/exist,hungerburg/exist,adamretter/exist,adamretter/exist,windauer/exist,patczar/exist,olvidalo/exist,windauer/exist,olvidalo/exist,shabanovd/exist,wolfgangmm/exist,adamretter/exist,olvidalo/exist,ambs/exist,MjAbuz/exist,patczar/exist,dizzzz/exist,jessealama/exist,shabanovd/exist,RemiKoutcherawy/exist,ljo/exist,lcahlander/exist,lcahlander/exist,olvidalo/exist,wolfgangmm/exist,zwobit/exist,joewiz/exist,hungerburg/exist,jessealama/exist,joewiz/exist,wshager/exist,jensopetersen/exist,lcahlander/exist,adamretter/exist,olvidalo/exist,opax/exist,windauer/exist,zwobit/exist,ljo/exist