sub parse_start {
my ($e, $tag, %attr) = @_;};
I know AxKit is based on SAX which is basically start/end tag events. Is there any look-ahead in SAX?
Basically, I'm trying to find out in one start tag, what the next tag is. Let's say I have an optional tag that will be used to filter the results normally loadedin the base tag:
<mytag>
<myfiltertag>
</mytag>vs.
<mytag>
</mytag>
When spitting out the underlying code, when <myfiltertag> is supplied, I would postpone any setup work in <mytag> until </myfiltertag> end event.
When <myfiltertag> is left out, I need to do the setup work right awayin <mytag>.
As <mytag> may contan many other tags, I can't just wait until the </mytag> event.
This problem is even more complicated if <mytag> is a looper since typically <mytag> would do the first hald of the 'for $x (@y) {' code and the </mytag> code would finish it with '};'.
<myfiltertag> could alter @y on the fly, but that really means I've still have to load @y twice. If would be more efficient if <mytag> knew it have a <myfiltertag> child and let </myfiltertag> take car of loading @y and starting the 'for $x (@y) {' code block.
Thanks, -=Chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
