[Home] [By Thread] [By Date] [Recent Entries]
Hi Bernie, Please try this stylesheet: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" /> <xsl:template match="/root">
<html>
<head>
<title/>
</head>
<body>
<xsl:call-template name="GenerateBreadcrumbs">
<xsl:with-param name="x" select="breadCrumbs" />
<xsl:with-param name="y" select="breadCrumbsUrls" />
</xsl:call-template>
</body>
</html>
</xsl:template> <xsl:template name="GenerateBreadcrumbs">
<xsl:param name="x" />
<xsl:param name="y" /> <xsl:choose>
<xsl:when test="$y != ''">
<xsl:choose>
<xsl:when test="contains($y,',')">
<a href="{substring-before($y,
',')}"><xsl:value-of select="substring-before($x, ',')"
/></a><xsl:text> </xsl:text> >
</xsl:when>
<xsl:otherwise>
<a href="{$y}"><xsl:value-of
select="substring-before($x, ',')" /></a><xsl:text> </xsl:text> >
</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="GenerateBreadcrumbs">
<xsl:with-param name="x"
select="substring-after($x, ',')" />
<xsl:with-param name="y" select="substring-after($y, ',')" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$x" />
</xsl:otherwise>
</xsl:choose>
</xsl:template></xsl:stylesheet> Regards, Mukul On 6/21/06, Bernie <berniecc@xxxxxxxxx> wrote: With the next XML:
|

Cart



