I have a sitemap resource that transforms into HTML. I am utilizing the Authentication Manager. The XSL for the page needs to have the ID of the currently signed on user. A point to remember is that the resource is also used for public pages, where the user is NOT signed in.
The only solution I could come up with is as follows, but it seems like a
kludge. It needs to process two additional transformers! Does nayone know if
there's a better way to do this?
<map:resource name="layout">
<map:act type="auth-loggedIn">
<map:parameter name="handler" value="imweb-auth-handler"/>
<map:act type="auth-protect">
<map:parameter name="handler" value="imweb-auth-handler"/>
<map:transform src="presentation/add-authentication-part.xsl"/>
<map:transform type="session"/>
</map:act>
</map:act>
<map:transform label="layout" src="presentation/page-to-html.xsl" />
<map:transform label="relative" src="presentation/relativize-links.xsl">
<map:parameter name="currentPath" value="{request:requestURI}"/>
<map:parameter name="basePath" value="/imweb/public/"/>
</map:transform>
</map:resource>
smime.p7s
Description: S/MIME cryptographic signature
