Re: Still serious problems with psgml 1.2.5

Lennart Staflin <[email protected]>
Newsgroups gmane.emacs.psgml.user
Message-ID <[email protected]>
On torsdag, maj 29, 2003, at 09:56 Europe/Stockholm, Dave Pawson wrote:

> At 13:10 27/05/2003 +0200, Lennart Staflin wrote:
>> I haven't been abel to reproduce your problems but I noticed a few 
>> things:
>>
>>>     sgml-parent-document:("LEDATutorium.xml" "book" ("chapter") 
>>> "book")
>>
>> This should be
>>     sgml-parent-document:("LEDATutorium.xml" "book" "chapter")
>
>
> The documentation says:
>
> (parent-file context-element* top-element (has-seen-element*)?)
>
> If I have a file with top element chapter, in file book.xml,
> would this be
>
> sgml-parent-document:("book.xml" "book" "chapter")   then?
>
>

Yes.

> with the chapter root matching the 'has-seen-element'?

No.

>   or is the  'has-seen-element' part the 'next' higher element in the 
> higher level file?

The has-seen-element is for the following situation:

book.xml:
     <book>
     <chapter>
     <title>..</title>
     &chap1body;
     </chapter>
     </book>

chap1body:
     <para>...</para>
     <para>...</para>
     <!-- ..
         sgml-parent-document:("book.xml" "book" "chapter" ("title"))
     -->

That is, when the external entity has no single top element but is part 
of the content of some element (<chapter>). In this case you might need 
to list the elements in <chapter> that precedes the elements in the 
external entity. The existence of the has-seen-elements part in 
sgml-parent-document signals that the top-element is in the parent 
document and not in the child document. If the <title> element is in 
chap1body it would look like this instead:

chap1body:
     <title>..</title>
     <para>...</para>
     <para>...</para>
     <!-- ..
         sgml-parent-document:("book.xml" "book" "chapter" ())
     -->

With no actual has-seen-elements but with the enclosing parentheses.

//Lennart



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
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.