|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Full path to a node
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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








