Re: Table Issue



On Sat, Aug 12, 2000 at 01:24:08AM +0300, Ali Abdin wrote:
> * Mike Sangrey (mike@sojurn.lns.pa.us) wrote at 01:22 on 12/08/00:
> > 
> > aliabdin@aucegypt.edu said:
> > > In kernel-locking.sgml I found the following:
> > >        <row>
> > >         <entry>read very_important_count (5)</entry>
> > >         <entry></entry>
> > >        </row>
> > > Note the empty <entry> tags. Currently this causes empty <TD> (or TH)
> > > tags in gnome-db2html2 with no characters in between - e.g: <TD></TD>
> > 
> > > I tried this with db2html and for those empty tags it inserts '&nbsp;'
> > > - this gives it a much better look when rendering.

  let's call that a rendering hack :-)

> > > The problem is because there are no characters in between the <entry>
> > > tag the charactersSAXFunc never gets called so I can not print out a
> > > &nbsp;
> > 
> > > What you will need to do instead is: <entry>&nbsp;</entry>  

  As sent previously to Ali, I don't suggest to do that. Keeping
the original form of the documentation as clean as possible is
quite more important than "nice rendering" for one of the generated
formats. Hacking the generator to output &nbsp; is a hack too but
located in better place.

> > Couldn't we have a call back which would be called upon an empty tag.  Seems 
> > to me this would be generally useful in the SAX parser for error handling.  
> > I've carboned Daniel Veillard on my reply.

  there is no SAX callback for "no data". The Right Way to do this is
to check that there was no other callback (characters(),
ignorableWhitespaces(), entityReference() or element related ones) between
the pair of startElement() and endElement() callbacks.

> Ugggh - I've already mail'd DV about this. This is /NOT/ a problem with the
> SAX parser :)

  well I don't think this is a bug in this case :-) , it's just trying
to follow the SAX API:
   http://www.megginson.com/SAX/

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]