Changed startDocument() to set doctypeWritten=false so that the doctype is written correctly for each invocation of the query
Changed startDocument() to set doctypeWritten=false so that the doctype is written correctly for each invocation of the query

svn path=/trunk/eXist-1.0/; revision=1810

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