XML-Rules - Attaching both a subroutine and a builtin rule to a tag

Posted on Sat Nov 11 00:40:30 2006 by jenda
Attaching both a subroutine and a builtin rule to a tag

Even though the implementations of all the builtin rules are rather simple I think it might be good to allow the user to use those, descriptive, names instead of the often slightly tricky implementations. I'm not sure about the best syntax though. I'm considering:

tag => sub {...; return \'as is'}, tag => [ sub {...}, 'as is'], tag => [ 'as is', sub {...}],

but maybe there's an even better syntax. Any suggestions or preferences?

Write a response