This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: How to remove surplus spaces.
- From: murray at stokely dot org
- To: "Glass, Eric" <eric dot glass at capitalone dot com>
- Cc: 'Josef Karthauser' <joe at tao dot org dot uk>, docbook-apps at lists dot oasis-open dot org
- Date: Fri, 29 Mar 2002 02:10:41 -0800
- Subject: Re: DOCBOOK-APPS: How to remove surplus spaces.
- References: <894F36FA89ECD411A0CB0002A52CAFB20A81175D@kdcnt4mbx02.kdc.capitalone.com>
Uhm, he specified that this was for DSSSL.
Joe, I think you want the strip function in dblib.dsl.
- Murray
On Fri, Mar 29, 2002 at 04:56:48AM -0500, Glass, Eric wrote:
> Add something like:
>
> <xsl:strip-space elements="quote footnote"/>
>
> to the stylesheet. Similarly, if you want to strip space as a default with
> specified exceptions you could say something like:
>
> <xsl:strip-space elements="*"/>
> <xsl:preserve-space elements="para"/>
>
> These are top-level elements (children of xsl:stylesheet) -- I'm not yet
> that familiar with the layout of the stylesheets, so I'm not sure where it
> would be most appropriate to add this. Anyone have a suggestion?
>
> -----Original Message-----
> From: Josef Karthauser [mailto:joe@tao.org.uk]
> Sent: Thursday, March 28, 2002 8:20 PM
> To: docbook-apps@lists.oasis-open.org
> Subject: DOCBOOK-APPS: How to remove surplus spaces.
>
>
> Is there an easy way to remove surplus spaces in things like:
>
> <quote> something </quote>?
>
> I'd like to have the stylesheet automatically remove the leading and
> trailing white space.
>
> Also in cases like:
>
> some text <footnote> .... </footnote>
>
> I'd like to have all the white space before the opening <footnote>
> gobbled up.
>
> I'm using openjade and the DSSSL stylesheets.
>
> Joe
>
> **************************************************************************
> The information transmitted herewith is sensitive information intended only
> for use by the individual or entity to which it is addressed. If the reader
> of this message is not the intended recipient, you are hereby notified that
> any review, retransmission, dissemination, distribution, copying or other
> use of, or taking of any action in reliance upon this information is
> strictly prohibited. If you have received this communication in error,
> please contact the sender and delete the material from your computer.