Re: Bug#65862: sp: nsgmls gives warning message for *any* XML document
On Mon, Feb 05, 2001 at 03:50:24PM -0500, Adam Di Carlo wrote:
> Right. James Clark talked about this:
>
> http://www.w3.org/TR/NOTE-sgml-xml-971215
>
> + The SGML declaration must be implied and cannot be
> explicitly present in the document entity
>
> I am not sure how one is supposed to work around this when using
> 'nsgmls'. i guess you just don't use -wxml. With OpenSP, I can use
> DTDDECL to associate the XML declaration implictly with the FPI.
In the unstable version of sp, there is a new file called
/usr/lib/sgml/declaration/xml.soc (at least, I don't think this was
present in potato). One can follow the instructions in the nsgmls
documentation (xml.htm):
To enable SP's support for XML 1.0:
Set the SP_CHARSET_FIXED environment variable to YES.
Set the SP_ENCODING environment variable to XML.
Set the SGML_CATALOG_FILES environment variable to point to the
file pubtext/xml.soc.
Use the -wxml option.
If the document is not supposed to be valid, use -wno-valid
option.
Thus, the following works:
$ SP_CHARSET_FIXED=YES SP_ENCODING=XML \
SGML_CATALOG_FILES=declaration/xml.soc \
nsgmls -wxml -gues minimal.xml
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
Debian GNU/Linux Developer, see http://people.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/
Reply to: