# File nqxml/tokenizer.rb, line 436 def nextDeclSep while @currInput.pos >= @currInput.length @inputStack.pop() @currInput = @inputStack.last end startPos = @currInput.pos - 1 name = nextName() if !peekMatches?(';') str = "illegal parameter entity reference '%#{name}' is" + " missing trailing semicolon" raise ParserError.new(str, self) end skipChar() # eat ';' # Get replacement text and raise an error if it is not defined. # Per the XML spec, surround replacement with single spaces. if @paramEntities[name].nil? str = "undefined parameter entity '%#{name};' in DOCTYPE tag" raise ParserError.new(str, self) end replacement = ' ' + @paramEntities[name] + ' ' # Create a new input stream. @inputStack.push(@currInput = Input.new(replacement, true, @currInput.uri)) end