#!/usr/bin/env ruby #-*-ruby-*- require "misen/expand-acq" require "misen/parse" require "misen/style-sgml" source = <

#misen:document_title#

#misen:section_title#

Section's title is '#misen:section_title#', and document's title is '#misen:document_title#'. (Taken from parent dictionary data.)

EOF data = { :document_title => "TITLE OF DOCUMENT", :section => {:section_title => "TITLE OF SECTION"} } parsed = Misen.new_parser(Misen::STYLE_SGML_EX).parse_text(source) printer = Misen::AcqExpandPrinter.new($stdout) printer.expand_nodes(parsed, data) =begin Expected ----------

TITLE OF DOCUMENT

TITLE OF SECTION

Section's title is 'TITLE OF SECTION', and document's title is 'TITLE OF DOCUMENT'. (Taken from parent dictionary data.)

=end