Stylesheet generating and preprocessing