Add xsl template switch to pagelist