Re: NEWBIE Question

Subject: Re: NEWBIE Question
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Wed, 31 Dec 1997 14:03:19 -0600
At 02:51 PM 12/31/97 -0500, Chuck Darney wrote:
>ZIP, etc) and the SGM instance makes use of these elements.  How does
>the DSSSL combine several of these elements on a single line with the
>appropriate punctuation and spacing (city, state  zip)?
>
>I've done so by using:
>  (element CITY
>     (make sequence
>        (process-children-trim)
>        (literal ", ")))
>

That's how you do it.  The only way to make it easier would be to create a
function that takes the pre and post generated text as arguments.  The
problem with that is that you either have to limit the arguments to strings
or require them to be sosofos, in which case, constructing the arguments
comes to almost as much work as the above (if not more, because of the
indirection).

Note that DSSSL gives you complete control over the presentation of
generated text, unlike most SGML presentation systems (especially online
viewers), because you can create any valid sosofos.  The downside of this
power is the added complexity in the simple case, as you've discovered.

Cheers,

Eliot
--
<Address HyTime=bibloc>
W. Eliot Kimber, Senior Consulting SGML Engineer
Highland Consulting, a division of 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
  • NEWBIE Question
    • Chuck Darney - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id OAA22741Wed, 31 Dec 1997 14:52:49 -0500 (EST)
      • <Possible follow-ups>
      • W. Eliot Kimber - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id PAA22971Wed, 31 Dec 1997 15:06:52 -0500 (EST) <=