# File tests/dispatchertester.rb, line 14 def setup if @@xml.nil? @@xml = '<?xml version="1.0"?> <!DOCTYPE book SYSTEM "foo.bar"> <book>My Book <!-- My Book, which is mine, is a book. That is mine. --> <intro> <p>This is the intro to my book,which has<bold>bold ideas</bold> </p> </intro> <chapter> <p>This is the first chapter. It has <bold>bold text</bold></p> <note>Should match chapter/*</note> </chapter> <appendix> <chapter>a chapter in the appendix <figure>Should match chapter/*</figure> </chapter> </appendix> </book> <chapter> <p>Should match chapter/*</p> </chapter> ' end @xml = @@xml end