Bug 15379 - nsgmls: Different behavior than documentation
Summary: nsgmls: Different behavior than documentation
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: jade
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-08-04 12:40 UTC by Need Real Name
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-08-31 20:52:36 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2000-08-04 12:40:36 UTC
The program "nsgmls" ships with the jade package, but it is originally part
of "PS", I think. Anyway, it behaves differently than documented in the man
page. The default SGML declaration it uses in case the processed document
does not provide one is in face the docbook one. This might be seen as a
documentation error, but it took me quite a long time to find out using
strace... Thanks for your attention.

Comment 1 Need Real Name 2000-08-04 12:46:27 UTC
The docbook SGML declaration that is used is:
/usr/lib/sgml/dtds/decls/docbook.dcl

Steps to reproduce: Run nsgmls example.sgml, with a file example.sgml
containing:

<!DOCTYPE mydoc [
	<!ELEMENT mydoc - -	(blah)>
	<!ELEMENT blah  - O	(#PCDATA)    >
]>
<mydoc>
<blah>Dies ist der Text im blah
</mydoc>

nsgmls says "nsgmls:example.sgml:7:7:E: end tag for "BLAH" omitted, but OMITTAG
NO was specified". According to the man page, the default sgml declaration has
OMITTAG YES.

Comment 2 Tim Waugh 2000-10-03 15:02:06 UTC
If you have:

SGMLDECL "dtds/decls/docbook.dcl"

in /usr/lib/sgml/CATALOG then this is correct behaviour, at least according to
the documentation I'm looking at.

If this is not the case, please reopen.


Note You need to log in before you can comment on or make changes to this bug.