[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK-APPS: Why "listitem" is not parallel with (X)HTML "li"? (wasRE: DOCBO OK-APPS: ListItem)
Well, if the text of DocBook's "listitem" cannot be used without <para></para> tags, then the db2html should be able to recognize the special case of <li><p>text</p></li>, and to remove the <p> tags. The reason is that <li>text</li> will probably be rendered "as wanted" correctly by more browsers. Moreover, it is valid and simpler form. On the other hand, XHTML, which is expected to be used instead of HTML for web documets, defines the "li" element the same way as the HTML do. It can also contain the flow (i.e. block or inline elements). Isn't that serious-enough reason to define also the DocBook "listitem" element the same way? To summarize my question... What are the reasons not to define DocBook "listitem" similarly to HTML's or XHTML's "li" element? Why it cannot contain #PCDATA? How the above (and below -- as described by Lars) case should be solved? Thanks for your explanation, Petr > -----Original Message----- > From: lars.bjorndal@grieg.uib.no [SMTP:lars.bjorndal@grieg.uib.no] > Sent: Monday, March 04, 2002 2:15 PM > To: docbook-apps > Subject: Re: DOCBOOK-APPS: ListItem > > "Prikryl,Petr" <PRIKRYLP@skil.cz> writes: > > ...> I guess that it depends on the browser if the two > > cases will be rendered the same way or differently. > > Yes, I think you are right. > > > I am not good in DocBook, yet. But I would > > expect the first case to be produced from your source, > > because you explicitly says that you want "para" > > inside the list item. > > Yes, I have tried the without para inside listitem, but then the > validation process fails, it's not valid with character data right > after <listitem>. But is there a way to tell db2html command that I > want the html without para after li? > > Lars > > >> -----Original Message----- > >> From: lars.bjorndal@grieg.uib.no [SMTP:lars.bjorndal@grieg.uib.no] > >> Sent: Monday, March 04, 2002 8:53 AM > >> To: docbook-apps > >> Subject: DOCBOOK-APPS: ListItem > >> > >> Hi > >> > >> I've some problems with the listitem-tag while producing html. The > >> html gets <li>, and thereafter a <p>-tag: While viewing this html file > >> with for instance "links", it displays one blank line after the > >> list-symbol. > >> > >> The source have this lines: > >> > >> <Para> > >> > >> <ItemizedList> > >> <ListItem> > >> > >> <Para> > >> the text. > >> > >> </Para> > >> </ListItem> > >> > >> ... > >> > >> And the html-file has this code: > >> > >> <UL > >> ><LI > >> ><P > >> > Some text. </P > >> ></LI > >> > > >> > >> I think the <p> after <LI> shouldn't be there. Isn't that right? > >> > >> What can I do to get the result I want? > >> > >> Please help! > >> Lars > >> -- > >> Lars Bjørndal <lars.bjorndal@grieg.uib.no> > >> Storetveitåsen 15, 5067 Bergen. > >> Tlf.: 55 28 87 55 Mobil: 958 37 537 Telefaks: 55 28 40 67 > > -- > Lars Bjørndal <lars.bjorndal@grieg.uib.no> > Storetveitåsen 15, 5067 Bergen. > Tlf.: 55 28 87 55 Mobil: 958 37 537 Telefaks: 55 28 40 67
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC