Help for this page

Select Code to Download


  1. or download this
     
       my $twig = new XML::Twig(
                    TwigHandlers => {
    ...
                        'body.content/block/hl2' => \&process_body_hl2,
                        'body.content/table' => \&process_table,
    etc. etc.
    
  2. or download this
    sub process_body_hl2 {
        my ($t, $hl2) = @_;
        my $para = crunch($hl2->text);
        $body .= "<p><b>$para</b></p>";
    }
    
  3. or download this
        <body.content>
          <hl2 style="section_head">SECTION HEAD</hl2>
          <hl2 style="subhead">subhead</hl2>
          <p/>
    
  4. or download this
    <body.content>
    <p>SECTION HEAD</p><p>subhead</p>
    
  5. or download this
     <p/>
     <hl2 style="subhead">2nd subhead</hl2>
    
  6. or download this
    <p><b>2nd subhead</b></p><p>