Separate URL substitution into a separate step and apply custom XSLT