[Bug 204] New: Should be able to tell application about unknown entities

[email protected] Wed, 25 Aug 2004 14:36:58 -0500 (EST)
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
http://www.extreme.indiana.edu/bugzilla/show_bug.cgi?id=204

           Summary: Should be able to tell application about unknown
                    entities
           Product: XmlPull.org
           Version: 1.1.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Design
        AssignedTo: [email protected]
        ReportedBy: [email protected]


On http://xmlpull.org/v1/doc/features.html#process-docdecl (PROCESS DOCDECL) it
says:

    If the feature is set to false and if XML document type declaration (in
short DOCDECL) is encountered it MUST be reported by nextToken() and MUST be
ignored by next(). Note that as the DOCDECL was ignored then during parsing may
be fatal exception when undeclared entity is encountered!

However the XML spec says:

    Note that non-validating processors are not obligated to to read and process
 entity declarations occurring in parameter entities or in the external subset;
 for such documents, the rule that an entity must be declared is a 
well-formedness constraint only if standalone='yes'.

It seems like in a case like PROCESS DOCDECL false, it would make sense to take
the hint from the spec, and instead of a fatal error, just tell the application
the parser has seen an entity and what it is named.

My immediate reason for suggesting this is http://tinytemplate.org/ which is a
template engine which would like to be able to pass an entity from an input XML
document to an output XML document without needing to worry about what it would
expand to.  I would think that any round-tripping (or similar) application which
might want to avoid reading the DTD would have a similar desire.

At least for a first cut at this I'd suggest to not worrying about entity
references in attributes.  Entity references in attributes are really a larger
issue (some aspects of which are discussed in bug 180).



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xmlpull-dev/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/