Re: [xsl] XSL-FO Doctype Problem

Subject: Re: [xsl] XSL-FO Doctype Problem
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 27 Jan 2008 21:10:56 -0500
At 2008-01-27 12:16 -0700, Karl Stubsjoen wrote:
There is a doctype decleartion in the imported stylesheet.  I was
assuming that the child template importing the base template would be
able to "un-declare" the doctype setting from the imported stylesheet.
 Is thi not possible?  Based on my experience, it is not possible.

Yes, you cannot un-declare the DOCTYPE, but you can override the DOCTYPE to have a system identifier that points to an empty zero-byte file. An empty file is a well-formed external parameter entity.

So, your importing stylesheet can have:

<xsl:output doctype-system="dummy.ent"/>

And you can create a empty dummy.ent file in the same directory.

The result is well-formed.

I hope this helps.

. . . . . . . . . . . . Ken

World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Nov'07
Legal business disclaimers:

Current Thread