On Mon, Apr 03, 2006 at 10:07:41AM +0200, Harald Jörg wrote:
> Jesse Sheidlower <[EMAIL PROTECTED]> writes:
> >
> > I get no results, just a <td></td> pair in my output. (If I
> > remove the "| $transform", I do get the raw XML in my output.)
> > The only error I get in my log is "Use of uninitialized value
> > in concatenation (.) or string at [the line in the template]",
> > showing that $transform is undefined, though I get no error at
> > the USE statement--yet if I put a bogus path to the
> > stylesheet, or go to a deliberately invalid stylesheet, I _do_
> > get an error.
> 
> This is strange.
> 
> I doubt that $transform is undefined.  You can check that easily by
> including 'Filter is: [% transform%]' in your template, which should
> yield something like 'Filter is:  Template::Plugin::XSLT=HASH(0xe24ef0)'.

You're absolutely right.

> I recall that I've here and then struggled with empty output from the
> filter, but this has, in every case, been caused by invalid XML input.

And again. I feel remarkably stupid here, for the problem was
as simple as that the snippet I was trying to pass through the
filter was, indeed, invalid--it got inserted into the DB
without its enclosing tags. Adding them back gives me valid
XML, and makes everything work perfectly.

Thanks for the nudge!

Jesse Sheidlower

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to