page header footer resolution

G. Ken Holman gkholman at
Sat Sep 19 07:32:17 BST 1998

At 98/09/11 23:08 -0400, Frank Boumphrey wrote:
>>I've seen slightly conflicting suggestions. In some postings it's been
>>suggested that there is not currently a standard way to HIDE content.
>my understanding was that if you didn't want to display an object you just
>ommited to process the children.

Not to my understanding ... one would have to omit the template content to
truly hide the element and have nothing at all displayed.

><greeting>Hello XSL!</greeting>
>    <xsl:template match="greeting">
>        <fo:block font-size="16pt">
>            <process-children/>
>        </fo:block>
>    </xsl:template>
> would result in a styled text flow object, "Hello XSL!"
><xsl:template match="greeting">
>    <fo:block font-size="16pt">
>        <!--<process-children/>-->
>    </fo:block>
>would not.

But your example above would, I think, produce a 16pt high paragraph block
from the formatter.  Thus, though the characters of the content are hidden,
the presence of the <greeting> element would still be visible.

I would use the following to completely hide the element.

<xsl:template match="greeting"/>

I hope this helps.

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

p.s. As Paul pointed out, this should be discussed on the XSL-List
( ... I answered here since the
thread was started here.

G. Ken Holman               mailto:gkholman at
Crane Softwrights Ltd.
Box 266,                                V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0            F: +1(613)489-0995

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list