have you tried: <dtml-sqlvar something type="string"> instead of : <dtml-sqlvar something type='string'>