[ic] Usertag: table_organize question
gnorton at broadgap.com
Tue Jan 25 16:06:50 EST 2005
Jon Jensen wrote:
>On Tue, 25 Jan 2005, Gary Norton wrote:
>>I am working on updating my modules to validate against XHTML 1.0
>>Transitional and want to make a change to the table_organize tag.
>>Tags are case sensitive in XHTML so I need to change <TD> to <td> and </TD>
>>to </td> (the embed function of table_organize requires the case differences
>>in order to determine which code it should manipulate, and which code it
>You could just postprocess the final output to lowercase the HTML tags. At
>the end of the sub, remove the "return $out . $postamble;" and put this
> $out = $out . $postamble;
> $out =~ s:(</?TD>): lc($1) :eg;
> return $out;
>That's untested, but the general idea should work.
Thanks Jon. That did the trick. I just modified it a bit to suit my
needs and it is now validating 8).
More information about the interchange-users