Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 15379

Summary: nsgmls: Different behavior than documentation
Product: [Retired] Red Hat Linux Reporter: Need Real Name <moritz>
Component: jadeAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-31 20:52:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.