[stringtemplate-interest] Dynamic attribute reference?

Mark Cooke markcooke666 at yahoo.co.uk
Thu Nov 9 05:32:59 PST 2006


In my reply to Terence's response, I accidentally
replied soley to him, so for the benefit of the
list...
> Speedy response! Thanks!
> I thought I was doing something wrong.
> I like (and have just tried) the (language+"Text")
> method, but I get a parse exception;
> problem parsing template 'properties'
> line 1:64: expecting '}', found '<EOF>'
>
> My template group (.stg file) is just this:
> group strings;
>
> properties(Strings, language) ::= "<Strings: {
String
> | <String.UniqueStringId>=<String.(language+"Text")>
> <\n>}>"
>
> Have I gotten the wrong end of the stick here? What
am
> I doing wrong?

The nested "Text" pisses it off.  Try <<...>> as the
outer template  
"string" :)

Ter


Send instant messages to your online friends http://uk.messenger.yahoo.com 


More information about the stringtemplate-interest mailing list