Within my page layout XSL I am trying to determine whether I am in preview, edit or runtime mode. I have tried setting a page scope parameter in a pre-controller on the site. But it appears PAGE_SCOPE inst available until after the page has rendered. Because the xsl:if always fails, but the correct vaslue is output into my xsl:comment