[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: page header footer resolution

  • From: "G. Ken Holman" <gkholman@C...>
  • To: <xml-dev@i...>
  • Date: Fri, 18 Sep 1998 20:14:12 -0700

fo block hide
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.

>Thus
><greeting>Hello XSL!</greeting>
>
><xsl:stlesheet>
>    <xsl:template match="greeting">
>        <fo:block font-size="16pt">
>            <process-children/>
>        </fo:block>
>    </xsl:template>
></xsl:stlesheet>
>
> would result in a styled text flow object, "Hello XSL!"
>
>whereas:
>
><xsl:template match="greeting">
>    <fo:block font-size="16pt">
>        <!--<process-children/>-->
>    </fo:block>
></xsl:template>
>
>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
(http://www.mulberrytech.com/xsl/xsl-list) ... I answered here since the
thread was started here.


--
G. Ken Holman               mailto:gkholman@C...
Crane Softwrights Ltd.  http://www.CraneSoftwrights.com/x/
Box 266,                                V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0            F: +1(613)489-0995
Training:   http://www.CraneSoftwrights.com/x/schedule.htm
Resources: http://www.CraneSoftwrights.com/x/resources.htm
Shareware: http://www.CraneSoftwrights.com/x/shareware.htm


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.