Ronny Haryanto wrote:
Is it possible to print out the full path of a node with XSL?
Sure.
When I view the "Register A Project" page in the web application I
want to print out:
Home :: Manage :: Project :: Register
at the top of the page.
You can use ancestor-or-self axis to get full list of ancestors including
self, then iterate through the list and output labels:
<xsl:for-each select="ancestor-or-self::*/@label">
<xsl:value-of select="."/>
<xsl:if test="position() != last()">
<xsl:text> :: </xsl:text>
</xsl:if>
</xsl:for-each>
See also faq about getting pathes to a node:
http://www.dpawson.co.uk/xsl/sect2/N6077.html#d5745e18
--
Oleg Tkachenko
Multiconn Technologies, Israel
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list