From 5d8b1139d874cdbb4504e1b43bac195ae38394fa Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Mon, 29 Oct 2012 20:30:53 +0000 Subject: [PATCH] Add command to generate docbook-no-doctype.xsl to overcome Saxon doctype bug. --- xsl/xhtml/Makefile | 4 ++++ xsl/xhtml/html2xhtml.xsl | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/xsl/xhtml/Makefile b/xsl/xhtml/Makefile index 98cff4e3e..702390ec9 100644 --- a/xsl/xhtml/Makefile +++ b/xsl/xhtml/Makefile @@ -25,6 +25,10 @@ xsl-files: remove-old add-new fi; \ done + # Also Generate special docbook-no-doctype.xsl file + $(XSLT) ../html/docbook.xsl html2xhtml.xsl docbook-no-doctype.xsl \ + include.output.doctype=0 ; \ + profile-docbook.xsl: docbook.xsl ../profiling/xsl2profile.xsl $(XSLT) $< ../profiling/xsl2profile.xsl $@ diff --git a/xsl/xhtml/html2xhtml.xsl b/xsl/xhtml/html2xhtml.xsl index 6dd23e1ea..52ee16a58 100644 --- a/xsl/xhtml/html2xhtml.xsl +++ b/xsl/xhtml/html2xhtml.xsl @@ -11,6 +11,7 @@ encoding="ASCII" saxon:character-representation="decimal" /> + @@ -39,8 +40,10 @@ xml UTF-8 - -//W3C//DTD XHTML 1.0 Transitional//EN - http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd + + -//W3C//DTD XHTML 1.0 Transitional//EN + http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd + -- 2.40.0