> <!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"?>
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
Tel.: 06221 385129 (Wochenende)
Tel.: 02405 419788 (H)
Tel.: 02405 413524
Mob: 0172 2419568