|
def Entity::pull source
match = source.match( ENTITYDECL, true ).to_a.compact
# Now we have to sort out what kind of entity reference this is
if match.include? 'SYSTEM'
# External reference
match[2] = match[2][1..-2]
elsif match.include? 'PUBLIC'
# External reference
match[2] = match[2][1..-2]
match[3] = match[3][1..-2]
elsif match[1] == '%'
# Parameter entity declaration
match[3] = match[3][1..-2]
else
match[2] = match[2][1..-2]
end
match[1..-1]
end
|