Seems I can work around the error by copying the XML parameters into a local variable and then using that. This allows it to execute but it still won't validate.
So there are two problems here. Firstly the parameter system can't cope with a parameter which doesn't have a space after it, such as ":Tokens.nodes". Secondly there's still a spurious validation error in the schema modeller.