[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] XSL-FO Doctype Problem
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. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|