logical approach to function parameters for markup