[daisy] Daisy 1.5M2 error.xsl

Mindaugas Idzelis idzelis at us.ibm.com
Mon Jul 17 13:30:13 CDT 2006


I think error.xsl should have this instead: (doesn't work when checking 
[1] element of the throwable)

 <xsl:when test="exceptionChain/throwable[@class = 
'org.outerj.daisy.repository.DocumentReadDeniedException'] and $httpMethod 
= 'GET'">
        <xsl:value-of select="exceptionChain/throwable[@class = 
'org.outerj.daisy.repository.DocumentReadDeniedException']/@message"/>

I also added this little bit of javascript as the last part of the first 
<xsl:when> to automatically take you back to login page:

        <xsl:variable name="location">
            <xsl:value-of 
select="concat($mountPoint,'/login?returnTo=')"/>
            <xsl:value-of select="urlencoder:encode($pageURI, 'UTF-8')"/>
        </xsl:variable>
        <script language="javascript"> window.location='<xsl:value-of 
select="$location"/>';</script>


Thanks,

Mindaugas Idzelis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20060717/99430429/attachment.htm


More information about the daisy mailing list