Re: Where did all the spaces come from?

Subject: Re: Where did all the spaces come from?
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Mon, 15 Jun 1998 10:46:37 -0500
At 01:37 PM 6/12/98 -0400, Graydon Hoare wrote:
>On Fri, 12 Jun 1998, Justin Jay Sako wrote:
>
>> Can anyone tell me why I receive all these spaces in my output (and how
to get rid of them)?  (This is just a test file I threw together)
>
>Sure. Look at your input file. You're indenting your XML. The indentation
>spacing is whitespace too. Jade is just preserving your whitespace for
>you. 

It also makes a difference if you have explicit element type declarations.
If you have explicit declarations that don't allow #PCDATA where the white
space occurs, you won't get the spaces. However, without a DTD, the parser
has to assume that all white space is data and thus passes it through.

Cheers,

E.
--
<Address HyTime=bibloc>
W. Eliot Kimber, Senior Consulting SGML Engineer
ISOGEN International Corp.
2200 N. Lamar St., Suite 230, Dallas, TX 95202.  214.953.0004
www.isogen.com
</Address>


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Where did all the spaces come from?
    • Justin Jay Sako - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id MAA29376Fri, 12 Jun 1998 12:52:05 -0400 (EDT)
      • Graydon Hoare - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id NAA00549Fri, 12 Jun 1998 13:51:47 -0400 (EDT)
      • <Possible follow-ups>
      • W. Eliot Kimber - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA04549Mon, 15 Jun 1998 11:53:34 -0400 (EDT) <=