ModelloModello:
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:value-of select="$currentPage/ancestor-or-self::root/WebSiteSettings [@isDoc]/logo"/>
</xsl:template>
@Model.XPath("//WebSiteSettings [@isDoc]").First().logo
@Model.AncestorOrSelf("WebSiteSettings").First().logo Root dell'albero:
(AncestorOrSelf() gets the node at level 1, starting at the current node, moving straight up the node tree.)
@Model.AncestorOrSelf(1).Url