?SGML decl. for XML to run in NSGMLS?

Tim Bray tbray at textuality.com
Sat Dec 13 00:24:48 GMT 1997


At 03:17 AM 13/12/97 +0300, Dmitri Kondratiev wrote:
>I am trying to validate my xml with James Clark's nsgmls. When I use xml.dcl
>that SP distribution has together with nsgmls, I get lots of the following
>error messages :

First of all, you should use James' nsgmlsu (the u is for Unicode).
Second, you might want to try the attached for an SGML declaration,
I'm not sure James has finished polishing it, but it's what we use
for the XML spec and it's close. -Tim
-------------- next part --------------
<!SGML "ISO 8879:1986"
    CHARSET
        -- The CHARSET section is unchanged from the typical SGML
           declaration for basic SGML document, Figure 8, pg 479 in
           the Handbook. --
        BASESET "ISO 646-1983//CHARSET 
                         International Reference Version (IRV)
                         //ESC 2/5 4/0"
        DESCSET
              0    9    UNUSED
              9    2    9
             11    2    UNUSED
             13    1    13
             14   18    UNUSED
             32   95    32
            127    1    UNUSED
        BASESET "ISO Registration Number 109//CHARSET
                 ECMA-94 Right Part of Latin Alphbet 
                 Nr. 3//ESC 2/13 4/3"
        DESCSET
            128   32    UNUSED
            160    5    32
            165   89    32
            254    1    127
            255    1    UNUSED

    CAPACITY SGMLREF
        -- Capacities are not restricted in XML --
        TOTALCAP    99999999
        ENTCAP      99999999
        ENTCHCAP    99999999
        ELEMCAP     99999999
        GRPCAP      99999999
        EXGRPCAP    99999999
        EXNMCAP     99999999
        ATTCAP      99999999
        ATTCHCAP    99999999
        AVGRPCAP    99999999
        NOTCAP      99999999
        NOTCHCAP    99999999
        IDCAP       99999999
        IDREFCAP    99999999
        MAPCAP      99999999
        LKSETCAP    99999999
        LKNMCAP     99999999

    SCOPE DOCUMENT

    SYNTAX
        SHUNCHAR NONE
        BASESET "ISO 646-1983//CHARSET 
                 International Reference Version (IRV)
                 //ESC 2/5 4/0"
        DESCSET 
            0 128 0
        FUNCTION
            RE      13
            RS      10
            SPACE   32
            TAB     SEPCHAR    9
        NAMING
            -- '-' is an allowed name start character in XML --
            LCNMSTRT    "-"
            UCNMSTRT    "-"
            LCNMCHAR    "."    -- Moved '-' to LCNMSTRT --
            UCNMCHAR    "."    -- Moved '-' to UCNMSTRT --
            NAMECASE
                GENERAL     NO
                ENTITY      NO
        DELIM
            GENERAL    SGMLREF
                NET    "/>"
                PIC    "?>"
            SHORTREF   SGMLREF
        NAMES SGMLREF
        QUANTITY SGMLREF
            -- Quantities are not restricted in XML --
            ATTCNT      99999999
            ATTSPLEN    99999999
            -- BSEQLEN          NOT USED --
            -- DTAGLEN          NOT USED --
            -- DTEMPLEN         NOT USED --
            ENTLVL      99999999
            GRPCNT      99999999
            GRPGTCNT    99999999
            GRPLVL      99999999
            LITLEN      99999999
            NAMELEN     99999999
            -- NORMSEP          NO NEED TO CHANGE IT --
            PILEN       99999999
            TAGLEN      99999999
            TAGLVL      99999999

    FEATURES
        MINIMIZE
            DATATAG     NO
            OMITTAG     NO
            RANK        NO
            -- SHORTTAG is the only allowed feature. It is required. --
            SHORTTAG    YES    -- SHORTTAG is needed for NET --

        LINK
            SIMPLE      NO
            IMPLICIT    NO
            EXPLICIT    NO
        
        OTHER
            CONCUR      NO
            SUBDOC      NO
            FORMAL      NO
    
    APPINFO    NONE    -- ??? Do we want some APPINFO ??? --
>


More information about the Xml-dev mailing list