Project

General

Profile

Bug #8731 ยป rexml-sax2parser-fix.patch

ohai (Ippei Obayashi), 08/04/2013 06:01 PM

View differences:

lib/rexml/parsers/sax2parser.rb
177 177
            handle( :characters, copy )
178 178
          when :entitydecl
179 179
            @entities[ event[1] ] = event[2] if event.size == 3
180
            handle( *event )
180
            handle( :entitydecl, event[1..-1] )
181 181
          when :processing_instruction, :comment, :attlistdecl,
182 182
            :elementdecl, :cdata, :notationdecl, :xmldecl
183 183
            handle( *event )
lib/rexml/sax2listener.rb
70 70
    #  ["open-hatch", "PUBLIC", "\"-//Textuality//TEXT Standard open-hatch boilerplate//EN\"", "\"http://www.textuality.com/boilerplate/OpenHatch.xml\""]
71 71
    #  <!ENTITY hatch-pic SYSTEM "../grafix/OpenHatch.gif" NDATA gif>
72 72
    #  ["hatch-pic", "SYSTEM", "\"../grafix/OpenHatch.gif\"", "\n\t\t\t\t\t\t\tNDATA gif", "gif"]
73
    def entitydecl name, decl
73
    def entitydecl content
74 74
    end
75 75
    # <!NOTATION ...>
76
    def notationdecl content
76
    def notationdecl name, pubsys, pubid, uri
77 77
    end
78 78
    # Called when <![CDATA[ ... ]]> is encountered in a document.
79 79
    # @p content "..."