#!/usr/bin/perl /usr/bin/asp-perl
=pod
This part just to demo embedding normal ASP constructs
in the XMLsubs, which was no easy trick to implement!
=cut
Currently, XMLSubsMatch is set to:
Whatever tags XMLSubsMatch matches of the form
<%=
$Server->HTMLEncode('
text
-- or --
')%>
will be parsed into perl subroutines of matchtag name with
arguments and text passed in, so these subs would be called
respectively for the above XMLMatchSubs:
<%=$Server->HTMLEncode('
&matchtag( { param1 => "value1", param2=>"value2" }, \'text\' );
-- and --
&matchtag( { param1 => "value1", param2=>"value2" }, \'\');
')
%>
Note that XMLSubs tags of the form
And another embedded:
XML Subs Demo
Another table here to demo embedded XMLSubs tags:
<% for("yellow", "red", "blue") { %>
<% } %>
The my::* perl subs defining the XMLSubs are located in the global.asa.