RE: Formatting_the_result

Subject: RE: Formatting_the_result
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 05 Oct 1999 07:07:57 -0700
At 99/10/05 18:10 +0900, Frank A. Christoph wrote:
Uh oh---now I'm confused... in view of the rules for ignoring RE's right
after start tags and right before end tags, wouldn't it be OK to just output
things like:

<A>
<B>Hello </B>
<B>world!</B>
</A>

?

Nope ... because one doesn't necessarily know if <B> is an inclusion or not. Record end rules change when the element is allowed by means of an inclusion in the content model.


I think the new line at the end of the start tag is the safest ... I've been doing it a *lot* in my conversion work for many years (predating Jade) because it helps me look over the data in an editor after it has been converted from non-SGML to SGML. My habit, though, is to not introduce a new line in any end tag, only at the end of every start tag. It really helps to be able to bring it up in an editor for review.

(Geez, I hate this mixed content/whitespace stuff...!)

Don't we all? :{)}


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

--
G. Ken Holman                    mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.             http://www.CraneSoftwrights.com/d/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999   (Fax:-0995)
Website:  XSL/XML/DSSSL/SGML services, training, libraries, products.
Practical Transformation Using XSLT and XPath      ISBN 1-894049-01-2
Next instructor-led training:  1999-11-08, 1999-11-09, 1999-12-05/06,
                             1999-12-07, 2000-02-27/28, 2000-05-11/12


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



Current Thread