did you try not encoding the SLD in the function body? - it's possible that it is being encoded twice and thus makes no sense at the server end. -- Ian Turton Sent from State College, PA, United States