1a) <dtml-var id> is one way of writing it. 2a) <dtml-var "'text %s text'%id"> is another way of writing it 1b) <dtml-var id url_quote> is a second way of writing it 2b) ????? How do I do this one?? I have tried this, but that didn't work: <dtml-var "'text %s text'%id.url_quote()"> , but that didn't work either. What's the syntax? Anybody? Cheers, Peter