This content was uploaded by our users and we assume good faith they have the permission to share this book. If you own the copyright to this book and it is wrongfully on our website, we offer a simple DMCA procedure to remove your content from our site. Start by pressing the button below!
XML::Parser parses XML into a tree.
Some TextThe test case input and expected result are stored in two files named 01.xml and 01.html, respectively. In my experience, it pays to put the test cases in a separate subdirectory (DocBook), and to check the test cases into the collective repository. If the program runs amok and overwrites these files, you can always retrieve them from the repository. Also, by storing all the test data and programs in the repository, ensures programmer workstations are stateless. This allows you to switch tasks and/or workplaces easily. The unit test program is: #!perl -w use strict; use Bivio::Test; use Bivio::IO::File; Bivio::Test->new(’Bivio::XML::DocBook’)->unit([ ’Bivio::XML::DocBook’ => [ to_html => [ [’DocBook/01.xml’] => [Bivio::IO::File->read(’DocBook/01.html’)], ], ], ]);
Representation is the essence of programming.-- Fred Brooks
Some TextThe XML attribute tag doesn’t map to a simple HTML div tag, so the existing SMOP language didn’t work. But first we had to update the unit test.
Some other tags: literal value, function_name, and command-name.
A quoted paragraph.
A new section.
Needs further clarification. 
Something about XML.  c 2004 Robert Nagler Copyright All rights reserved [email protected]
SomeClass $some_var a_property my/file/name.PL War & Peace "I do declare!"Footnotes
Should appear at the end of the chapter.
Click here http://www.w3c.org/XML/