>From: Norman Walsh <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Date: Sun, 15 Jul 2001 17:43:47 -0400 >-------------------------------------- >/ "M.-A. DARCHE" <[EMAIL PROTECTED]> was heard to say: >| I had to add >| doctype-public="-//OASIS//DTD DocBook XML V4.1.2//EN" >| doctype-system="http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd" >| in <xsl:output> because the doctype declaration >| <!DOCTYPE HTML PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" >| "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"> >| is being lost in the process. > >Yep.
That takes care of the DTD declaration, but I'm losing everything else in the subset, too! Here's before and after running profile.xsl: source.xml ---------- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbookx.dtd" [ <!ENTITY comparingxml SYSTEM "comparingxml.xml"> <!ENTITY usingxdm SYSTEM "usingxdm.xml"> <!ENTITY glossary SYSTEM "xmldiffmrg_gloss.xml"> <!ENTITY xdm-diffwin1 SYSTEM "xdm-diffwin1.gif" NDATA GIF> ]> <book> ... profiled.xml ------------ <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbookx.dtd"> <book print.status="draft"> ... The only workaround I can think of is some non-XSL pre- or post-processing. Is there a better way? Thanks, Denis
