Nicolae gave a slightly longer answer to this question on the original
zorba-users mailing list, which I will copy here for reference:
----
While the error you receive is not very useful -- and we'll improve it
-- the reason you are getting it is that the option <opt:parse-
external-parsed-entity/> requries the input to be a well-formed
external parsed entity, and that does not allow for DOCTYPE
declarations.
But I agree that skipping such declarations would be useful and we
will add an option to do exactly that. In the mean time you can either
omit the <opt:parse-external-parsed-entity/> option or alternatively
remove the first line of the input, for example with the help of the
read-text() function from the File module (see the documentation here:
http://www.zorba-xquery.com/html/modules/expath/file#read-text-1 ).
----
Ceej
aka Chris Hillery