On May 25, Adam M. Costello ([EMAIL PROTECTED]) wrote:
> Frederic Schutz <[EMAIL PROTECTED]> wrote:
>
> > 1) If I do "onsgmls -s test.html", no output, as expected;
> > 2) If I do "cat test.html | onsgmls -s", the same;
> > 3) but if I do "onsgmls -s > onsgmls:0:73:16:E: end tag for "UL" omitted, but its declaration
> > does not permit this
> > onsgmls:0:58:4: start tag was here
>
> I'm observing something very similar with onsgmls from opensp 1.5.1.0-2.
>
> When I do onsgmls -s < foo.html, there is no output (which is correct).
> When I do cat foo.html | onsgmls -s, I get the following on stderr:
>
> onsgmls:0:108:7:E: end tag for "SPAN" omitted, but its declaration
> does not permit this
> onsgmls:0:107:0: start tag was here
>
> foo.html is below. I think it's significant that the and
> tags straddle the 8 kB boundary.
You're right, it is related to the length. I had looked into this at one
time, but was unable to resolve it. I found that OpenSP reads 4K characters
at a time when reading from stdin, and the problem occurs when the end tag is
more than 4K from the start. I also found that while the command
onsgmls -s < test.html
failed in this way for a test document similar to yours, the command
onsgmls -s < /dev/null test.html
worked. I did not expect a difference. This is bug 724705 on sourceforge.
--
Neil Roeth
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]