Re: PSGML / DocBook DTD

Lennart Staflin <[email protected]>
Newsgroups gmane.emacs.psgml.user
Message-ID <[email protected]>
On tisdag, september 10, 2002, at 04:05 , [email protected] wrote:

> Hi,
>
> Can anyone confirm whether or not PSGML's interpretation of what are 
> valid tags at any given point in a DocBook document is correct or not ?
>

I believe it is.


> I'm having trouble...
>
> I'm in the middle of writing a fairly simple document (so I'm using 
> article as my base). In the middle of a table entry, I thought I could 
> add a <simplelist> item. Certainly PSGML seems to think so, as it comes 
> up in the list of valid tags...
>
> However, onsgml doesn't seem to think simplelist *is* valid in that 
> location, and when I get to the end of the simplelist, and attempt to 
> carry on with the table, by inserting another <row> element, PSGML 
> seems to have got well and truly confused, and doesn't believe <row> is 
> a valid tag to have in the middle of my <tgroup>...


I assume that it is the regular SGML version and not the XML version of 
DocBook.

The element ENTRY has a complicated model. It is a mixed model with a 
or-group on the top. On the one hand you can have the same content as in 
a paragraph, and on the other you can have some block level components 
like lists. The paragraph content is mixed and mixed content is 
sensitive to whitespace. If you use the block level elements, you can 
not have any extra whitespace. You need to write something like:

             <entry><simplelist>
                 <member></member>
               </simplelist></entry>

This should work. That <row> is not valid is probably an effect of 
PSGML's error recovery. If you use C-c C-c you will see that you are no 
longer in a table at that point.

//Lennart



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.