How can i retrieve "Breadcumbs" for the flat-categorized xml?
This is an open discussion with 1 reply, filed under XSLT.
Search
if you don't have the ability to restructure your xml into something a bit more logical, you can probably get away with something like this:
<xsl:for-each select="item[@id <= /currentItem/@id]"> <xsl:value-of select="@handle">/ </xsl:for-each>
this hasn't been tested, but it should point you in the right direction. you may want to give an absolute path to currentItem
Create an account or sign in to comment.
Hello, XSLT professionals! For example, i have such xml:
How can i get set of items for output "Breadcumbs" in this way:
Must be like "1/2/3/4/"