Replacements for pattern variables that appear in transformation rules are effectively done using ReplaceAll (the /. operator).