Subject: Re: [xsl] XHTML html validation|
From: John Steel <john.steel@xxxxxxxxxxxxxxx>
Date: Fri, 16 Feb 2007 11:37:22 +0000
Hi John,Thanks (and Andrew too).
If you go XHTML, you don't want to use the method HTML, as it will not produce legal XHTML, which Andrew already pointed out.
<?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
One more thing: if you want to force a certain string on the beginning of your file, you can use a trick with character-maps in XSLT 2 to get it there. I've put a workaround on this or saxon's list a while ago, but it is easy enough to implement.Thanks, looks like I need this.