Re: [Templates] unexpected token

[prev] [thread] [next] [Date index for 2004/10/04]

From: Jamie Echlin
Subject: Re: [Templates] unexpected token
Date: 10:56 on 04 Oct 2004
When I've had a similar issue I've had to use a tmp variable:

[%
tmp = 'CD:X';
output.$tmp.closeTime

hth, jamie


fdsfds fdsfddsf wrote:
> Hello,
> 
> I'm parsing an XML response from a webservice, sending
> it through XML::Simple to produce a representation of
> the XML in a Perl data structure. The resulting hash I
> get sometimes includes keys with a colon in them. When
> I wish to use a value in my template, I get an
> unexpected token error - i.e. [% output.CD:X.closeTime
> %] - I've attempted to surround the "CD:X" part with
> various quotes, but nothing seems to work. Is there
> anything I can do, short of pre-processing the XML
> response?
> 
> I'd appreciate anything you can suggest,
> -joss
> 
> 
> 	
> 	
> 		
> ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com
> 
> _______________________________________________
> templates mailing list
> templates@xxxxxxxxxxxxxxxx.xxx
> http://lists.template-toolkit.org/mailman/listinfo/templates
> 
> 


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] unexpected token
fdsfds fdsfddsf 10:45 on 04 Oct 2004

Re: [Templates] unexpected token
Andy Wardley 10:54 on 04 Oct 2004

Re: [Templates] unexpected token
Jamie Echlin 10:56 on 04 Oct 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52