Thank you for your time,
I'm sorry i didn't even realised about something so basic.
I think i will try either to just get rid of the doctype declaration before the parse or try to move to xhtml.
Thank you again,


On Wed, Jul 15, 2009 at 12:34 PM, David Carlisle <> wrote:

> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "

that is an SGML DTD not an XML one, so the document can not be parsed by
an XML parser. You may be able to use something such as tagsoup which
will parse an html document and generate a stream of sax events that
then saxon can use to build a tree as if the input were xml.


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.

Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at:
saxon-help mailing list archived at