On Sat, May 31, 2003 at 10:52:16AM -0400, Tod Harter wrote:
> I have a perfectly simple 'SimpleTaglib' based taglib and I have been 
> completely stumped in attempting to use the 'childStruct' input attribute.
> 
> The simplest reproducible version of the problem is as follows:
> 
> My taglib function is:
> 
> sub form : struct childStruct($overrides{$fields{$field}})
>       {
>       return 'use Data::Dumper; warn Dumper(\%_); { foo => "GOT HERE"};';
>       }
> 
> and in my XSP page:
> 
> <fm:form>
>       <fm:overrides>
>               <fm:fields>
>                       <fm:field>qqq</fm:field>
>               </fm:fields>
>       </fm:overrides>
> </fm:form>

I've had some problems with 5.8 perl like that.  I don't know if its
the same problem you are having.  What I found out is that its puking
on the text nodes.  

when I went from:
<z:a>
  <z:b>...</z:b>
</z:a>

to:
<z:a><z:b>...</z:b></z:a>

it worked.  try collapsing the xml block, it might help

> 
> and the results of attemplting to process this is:
> 
> [Fri May 30 18:45:40 2003] [error] [client 192.168.168.10] [AxKit] [Error] 
> AxKit::load_module failed: childStruct specification invalid. Parse error at: 
> '}' at 
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache/AxKit/Language/XSP/SimpleTaglib.pm
>  
> line 39.
> BEGIN failed--compilation aborted at 
> /var/www/xml.home.giantelectronicbrain.com/Marmite/Webapp/GEB/Taglibs/Form.pm 
> line 20.
> Compilation failed in require at (eval 74) line 1.
> 
> I've gone over the docs and examples for SimpleTaglib over and over again and 
> I totally fail to understand how this is a bad spec...
> 
> Anyone got any bright ideas?
> 
> -- 
> Tod Harter
> Giant Electronic Brain
> http://www.giantelectronicbrain.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
John Edstrom  


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to