> <!DOCTYPE html>
> <html lang="en-GB">
>
> is not really suited to processing using XSLT, as the<html>
> is not formally in the XHTML namespace which the transformation expects.
> HTML5 processors are supposed to magically do this, as I understand
> the spec, but Saxon is not an HTML5 processor.

you should however (in theory, not tried it) be able to tell saxon to use Henri Sivonen's java html5 parser which exposes a sax interface so all the html5 weirdness should have been resolved by the parser and saxon should just see sax events as if parsed by a well formed xhtml file.

Thank your for you excellent tip. I found, however, a much simpler solution which should suffice at least at the beginning:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-GB">

With adding the name space to the <html> element the normal SAX parser is already happy. But I will try out your suggestion.

Thank you very much!
____________________________
Dr. Eberhard von Kitzing
Kaiserstr. 109
52146 Würselen

Tel.: 06221 385129 (Wochenende)
Tel.: 02405 419788 (H)
Tel.: 02405 413524
Mob: 0172 2419568