generalize span to cnxml tags creation