Philip Mak wrote:
>
> On my site, I have an XMLSub that converts this:
>
> <my:h1>Title Here</my:h1>
>
> into something like this:
>
> <table cellspacing=0 cellpadding=2 border=0 width="100%">
> <tr><td class="h1">
> Title Here
> </td></tr>
> <tr><td height=1 bgcolor="red">
> <img src="spacer.gif" width=1 height=1>
> </td></tr>
> </table>
>
> Is there any way I could have written it as <h1>Title Here</h1> and still
> have Apache::ASP perform that conversion? (I tried using a stylesheet
> command to change <h1> to the way I want it, but Netscape doesn't display
> it correctly.)
Yes, & then defined the subroutine in global.asa, or your
GlobalPackage namespace. XMLSubsMatch could then look like h1|$other_tags
You might also consider using XMLSubsStrict so that attributes
won't be interpreted as perl runtime expressions.
--Josh
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]