Re: [xsl] XSL-FO Doctype Problem

Subject: Re: [xsl] XSL-FO Doctype Problem
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 26 Jan 2008 23:18:38 -0500
At 2008-01-26 19:40 -0700, Karl Stubsjoen wrote:
My XSL-FO output is getting a doctype.  This is because the parent xsl
template declares a doctype, but I do not understand, if I have an
output of type xml at the fo template level, and I am matching on root
"/", shouldn't the doctype be snuffed?

Serialization is separate from result tree building, which is different from source tree matching.

Matching on the root node *of the source tree* declares the construction template of nodes *for the result tree*. Serialization guides how the result tree is realized as angle brackets.

The <xsl:output> defines aspects of serialization of the result tree, regardless of how the result tree is built.

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