Hi, Have you seen a bug when an anonymous user accesses the webpart using a link xsl to format information?In the case gives the message "Access denied. You do not have permission to perform this action or access this resource."The problem is only for anonymous user using a link to an xsl file.Can anyone help me?
See the code xsl:
<?xml version="1.0" ?>
-<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ddwrt2="urn:frontpage:internal">
-<xsl:template match="*/Rows"
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
ddwrt:ghost="">
-<td style="text-align: center; font-weight: bold; cursor:pointer; background-image: url('../../Style
Library/ImgImpeto/Bot_ListEmpresa.png'); background-repeat: no-repeat; width: 280px; height: 55px;">
<xsl:value-ofselect="concat('MenuXslIdLinha',@ID)" />
</xsl:attribute>
IdXsl = ('
<xsl:value-ofselect="concat('MenuXslIdLinha',@ID)" />
'); UrlXsl = ('
<xsl:value-ofselect="@FileRef" />
'); UrlAtiva = (location.href).replace(/%20/g,' '); UrlAtivaTruncada = UrlAtiva.substring(UrlAtiva.length - UrlXsl.length); if (UrlXsl == UrlAtivaTruncada) { document.getElementById(IdXsl).style.backgroundImage = "url('../../Style Library/ImgImpeto/Bot_ListEmpresaIN.png')";
}
</script>
<xsl:value-ofselect="@FileRef" />
</xsl:attribute>
</a>
<xsl:value-ofselect="@FileLeafRef.Name" />
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
André Barroncas