📄 new.htm
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML Strict//EN"><HTML><HEAD><TITLE>What's new in SP?</TITLE></HEAD><BODY><H1>What's new?</H1><P>This document describes recent user-visible changes in SP. Bug fixesare not described.<H2>Version 1.3</H2><P>Better <A HREF="xml.htm">support for XML</A> based on the Web SGMLAdaptations Annex to ISO 8879.<P>New <A HREF="sx.htm">SX</A> application that converts SGML to XML.<P>The architecture engine has been updated to match HyTime 2nd Edition(This means that you must use<CODE><?IS10744 ArcBase <VAR>arch</VAR>></CODE>rather than<CODE><?ArcBase <VAR>arch</VAR>></CODE>.)<H2>Version 1.2</H2><P>The Extended Naming Rules TC is supported.The extensions supported in external concrete syntaxes have beenchanged for compatibility with this.<P>The handling of character sets in the multi-byte version is moresophisticated.The <A HREF="charset.htm">character sets</A> HTML pagegives more information.<P>SP has built-in knowledge of many <A HREF="sgmldecl.htm#charset">morebase character sets</A>.<P>nsgmls will report empty elements if the <CODE>-oempty</CODE>option is used.<P>DTD-less parsing is possible, by using the <CODE>-wno-valid</CODE>option to allow undefined elements and attributes. This allowsparsing of well-formed XML documents, whether or not valid.<H2>Version 1.1</H2><P>There is now generalized support for <AHREF="archform.htm">architectural form processing</A>.<P>Documentation is now in HTML format.<P>A BASE catalog entry can be used to specify a base system identifierfor resolving relative storage object identifiers occurring in thecatalog.<P>A LITERAL storage manager is now provided.<P>Programs have a -E option that sets the maximum number of errors.<P>A DELEGATE catalog entry allows distributed resolution of publicidentifiers.<P>nsgmls has a -B (batch mode) option that allows you to parse multipledocuments with a single invocation of nsgmls.<P>In nsgmls the -c option now specifies a catalog as it does in spam andsgmlnorm, in addition to the -m option that previously did this.<P>The <SAMP>-n</SAMP> option has been replaced by a<SAMP>-onotation-sysid</SAMP> which applies to nsgmls only, and a<SAMP>-wnotation-sysid</SAMP> which applies generally.<P>SP can be built as a DLL under Win32.<H2>Version 1.0</H2><P>The syntax of system identifiers has completely changed. The newsyntax is based on the syntax of formal system identifiers defined inISO/IEC 10744 (HyTime) Technical Corrigendum 1, Annex D.<P>The NSGMLS_CODE environment variable has been renamed to SP_BCTF.nsgmls has a -b option to specify the bit combination transformationformat to be used for output.<P>A list of directories in which files specified in system identifiersshould be searched for can be specified using the environment variableSGML_SEARCH_PATH or the option -D.<P>Individual SYSTEM identifiers in external identifiers can beoverridden using SYSTEM entries in the catalog.<P>The OVERRIDE catalog entry now takes a YES/NO argument. (This changewas required for conformance to the SGML Open TR.) It applies to eachentry individually rather than to the entire catalog.<P>The -w options of nsgmls and spam have been enhanced. In spam, the -woption takes an argument as with nsgmls. There are new warnings forminimized start and end tags (-wunclosed, -wempty, -wnet and-wmin-tag); for unused short reference maps (-wunused-maps); forunused parameter entities (-wunused-param). -wall now doesn't includethose warnings that are about conditions that, in the opinion of theauthor, there is no reason to avoid. A warning can be turned off byusing its name prefixed by no-; thus -wmin-tag -wno-net is equivalentto -wunclosed -wempty. The -w option is also used to turn off errors:-wno-idref replaces the -x option; -wno-significant replaces the -Xoption.<P>In the output of nsgmls, characters that cannot be represented in theencoding translation specified by the NSGMLS_BCTF environment variableare represented using an escape sequence of the form \#N; when N is adecimal integer.<P>In the multi-byte versions of nsgmls there are new BCTFs is8859-Nfor N = 1,...,9.<P>There is a -o option to nsgmls which makes it output additionalinformation: -oentity outputs information about all entities; -oiddistinguish attributes with a declared value of id; -oincludeddistinguishes included subelements.<P>nsgmls now automatically searches for a catalog entry file called"catalog" in the same place as the document entity. Note that whenthe document entity is specified with a URL, this matches thebehaviour of Panorama.<P>A catalog entry file can contain CATALOG entries specifying additionalcatalog entry files. This matches the behaviour of Panorama.<P>The parser can now make available to an application completeinformation about the markup of prologs and SGML declarations. Itwould now be possible, for example, to use SP to write a DTD editor.spam exploits this to a limited extent: if the -p option is specifiedtwice, then parameter entity references between declarations will beexpanded; the -mreserved option puts all reserved names in upper-case;with the -mshortref option short reference use declarations and shortreference mapping declarations will be removed; attributespecification lists in data attribute specifications in entitydeclarations can be normalized like attribute specification lists instart-tags; with -mms it resolves IGNORE/INCLUDE marked sections.<P>nsgmls has a -C option which causes the command line filenames to betreated as a catalog whose DOCUMENT entry specifies the documententity.<P>nsgmls has a -n option which causes it to generate system identifiersfor notations in the same way as it does for entities.<P>spam now has a -f option like nsgmls.<P>The interface between the parser and entity manager has beenredesigned so that the entity manager can be used independently of theparser. This is exploited by a new program called spent that printsan entity with a specified system identifier on the standard output.<P>In most cases, a Control-Z occurring as the last byte in a file willbe stripped. This is controlled by the zapeof attribute in formalsystem identifiers.<H2>Version 0.4</H2><P>External concrete syntaxes, character sets and capacity sets aresupported using PUBLIC entries in catalog files. The multicode codecore and reference syntaxes are no longer built-in. Only a fewcharacter sets are now built-in.<P>Within external concrete syntaxes, various useful extensions arepermitted. In particular, an ellipsis syntax is allowed for thespecification of name characters and single character shortreferences. It is now practical to specify tens of thousands ofadditional name characters.<P>The default SGML declaration is more permissive.<P>nsgmls has a -x option that inhibits checking of idrefs.<P>nsgmls has a -w option that can enable additional warnings. Inparticular, -wmixed will warn about mixed content models that do notallow #pcdata everywhere.<P>The meaning of the f command in the output of nsgmls has changedslightly. It now gives the effective system identifier of the entity.<P>The functionality of the rast program has been merged into the nsgmlsprogram and the rast program has been removed. The -t option makesnsgmls generate a RAST result.<P>spam has a -l option that uses lower-case for added names that weresubject to upper-case substitution.<P>spam has a -mcurrent option that adds omitted attribute specificationsfor current attributes.<P><ADDRESS>James Clark<BR>jjc@jclark.com</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -