6 May 2008 02:09
Re: Question about lb practice
Syd Bauman <Syd_Bauman <at> BROWN.EDU>
2008-05-06 00:09:11 GMT
2008-05-06 00:09:11 GMT
Hi Dan! Very rushed reply ...
> Anybody have a suggested practice?
There are *lots* of possible practices. My usual is to presume that
<p> is one of those elements for which a line break is presumed
(unless overridden on the rend= attribute).
At the WWP we use "break(yes)" in the value of rend= to indicate that
there is a line-break before the content of an element, and
"break(no)" to indicate there isn't. So our encoding would look
something like
<tagsDecl>
<rendition xml:id="dod">break(yes) first-indent(1em)</rendition>
<namespace ...>
<tagUsage gi="p" render="#dod"/>
</namespace>
</tagsDecl>
<!-- ... -->
<p>Lorem ipsum dolor sit amet ...
See http://www.wwp.brown.edu/encoding/guide/html/rendition_break.html
However, you may find it a lot easier to generate those line numbers
on output if you stuck an <lb> in at every point there was a
line-break, whether or not you thought the surrounding element should
be considered as always being indicated with a line-break in the
source. I.e.
<p><lb/>Lorem ipsum dolor ...
Whatever you do, document in your <encodingDesc>, of course
RSS Feed