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
handle( :characters, copy )
when :entitydecl
@entities[ event[1] ] = event[2] if event.size == 3
handle( *event )
handle( :entitydecl, event[1..-1] )
when :processing_instruction, :comment, :attlistdecl,
:elementdecl, :cdata, :notationdecl, :xmldecl
handle( *event )
lib/rexml/sax2listener.rb
# ["open-hatch", "PUBLIC", "\"-//Textuality//TEXT Standard open-hatch boilerplate//EN\"", "\"http://www.textuality.com/boilerplate/OpenHatch.xml\""]
# <!ENTITY hatch-pic SYSTEM "../grafix/OpenHatch.gif" NDATA gif>
# ["hatch-pic", "SYSTEM", "\"../grafix/OpenHatch.gif\"", "\n\t\t\t\t\t\t\tNDATA gif", "gif"]
def entitydecl name, decl
def entitydecl content
end
# <!NOTATION ...>
def notationdecl content
def notationdecl name, pubsys, pubid, uri
end
# Called when <![CDATA[ ... ]]> is encountered in a document.
# @p content "..."
(2-2/4)