Re: [Hypercontent-users] BreadCrumbs
Brought to you by:
alexvigdor
From: Alex V. <av...@co...> - 2005-04-29 16:32:12
|
Hi Carl, It would be helpful to see the navigation XML (we'll often create an XML output for an xml-doctype that has all the includes but no transformation, to see what is feeding the transform), and perhaps a screenshot demonstrating where it has gone wrong. Alex On Apr 29, 2005, at 9:31 AM, Carl Barrow wrote: > I'm still having a problems getting breadcrumbs working properly on my > sites here in Hull. It always displays the first child at a > Particular level instead of the one which corresponds to the directory > you are actually in. Does anyone have time to take a look at where I > might be going wrong? > > Many Thanks > Carl > > <xsl:variable name = "navigation" select = > "/cms:wrapper/child::*/navigation"/> > <xsl:variable name = "sourceLoc" select = > "/cms:wrapper/cms:source/@path"/> > > > <xsl:template name = "breadcrumb"> > <xsl:param name = "item" select = > "$navigation/nav-item[//nav-item[@location=$sourceLoc]]"/> > > <xsl:call-template name = "breadcrumblink"> > <xsl:with-param name = "item" select = "$item"/> > </xsl:call-template> > > <xsl:if test = "not($item/@location=$sourceLoc)"> > <xsl:text> > > > </xsl:text> > > <xsl:call-template name = "breadcrumb"> > <xsl:with-param name = "item" select = > "$item/nav-item[//nav-item[@location=$sourceLoc]]"/> > </xsl:call-template> > </xsl:if> > </xsl:template> > > <xsl:template name = "breadcrumblink"> > <xsl:param name = "item" select = "."/> > > <a><xsl:attribute name = "href"> > <xsl:value-of select = "$item/@location"/> > </xsl:attribute> > > <xsl:value-of select = "$item/@label"/></a> > </xsl:template> > > > -- > ************************************ > > Carl Barrow > Web Developer > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |