# The translation file for XML->HTML literate programs { \ on_output(); \ } {$divert=1;} { \ print OP "$content"; \ print OP '

',$content,"

"; \ $divert=0; \ }

Version

{ \ use POSIX qw(strftime); \ $now_string = strftime "%e %b %Y", localtime; \ print OP $now_string; \ } include /home/ajh/lib/xml/TableOfContents.html
{ \ enter_section(0); \ if (defined($$rattr{'title'})) { \ print STDERR "old format title attribute \"",$$rattr{'title'},"\"\n"; \ } \ }
{ \ print OP '
'; \ print OP "

", section_string(), " "; \ $divert=1; $content=""; \ }

{ \ print OP "$content"; \ section_title($content); \ $divert=0; $content=""; \ }
{exit_section(0);} {enter_section(1);} { \ print OP '
'; \ print OP "

", section_string(), " "; \ $divert=1; $content=""; \ } { \ print OP "$content

"; \ section_title($content); \ $divert=0; $content=""; \ }
{exit_section(1);} {enter_section(2);} { \ print OP ''; \ print OP "
", section_string(), " "; \ $divert=1; $content=""; \ } { \ print OP "$content
"; \ section_title($content); \ $divert=0; $content=""; \ }
{exit_section(2);}




Maintenance History

 

# macrocall is used to flag a call on a macro name from within a macro scrap. # attributes are: # chunk The macro chunk number # We save the chunk number up for later printout at the end of the element. # { \ $macronum=$$rattr{chunk}; \ print OP '<'; \ } {print OP " $macronum>";} # file is used to markup a file definition # attributes are: # name The name of the file # chunk The macro chunk number # { \ print OP '\n"; \ print OP '

\n"; \
    print OP '"',$$rattr{name},'" ',$$rattr{chunk}," ="; \
    }

<>
{ \ my($name)=$$rattr{name}; \ my($i)=1; \ while (defined($$rattr{"parm$i"})) { \ my($parm) = $$rattr{"parm$i"}; \ $name =~ s/#$i/<$parm#$i>/; \ ++$i; \ } \ print OP '

\n"; \
    print OP "<$name $$rattr{chunk}> ="; \
    }

"{" "}" # # stuff to do identifier cross referencing # #
"#"
  >
<#

  
# "<" ">"
# some tags for straight HTML are passed through #

>t;">" <t;"<" &at;"@" &perc;"%" &under;"_" $"$" &ldq;" &rdq;"

46 accesses since 11 Oct 2008, HTML cache rendered at 20090817:2100