Thread: [Hypercontent-users] breadcrumb/sitemap
Brought to you by:
alexvigdor
From: Carl B. <C.P...@hu...> - 2005-10-04 09:23:27
|
Hi All Can anyone see anything wrong with my sitemap.xml file or the xsl that generates a breadcrumb trail. I have been trying for a while to get it working but for some reason I still can't get a breadcrumb to display for index.html pages at the following level in the site : /departments/academic_departments/applied_science_tech/index.html The strange thing is that it works fine for the rest of the site, including: /departments/academic_departments/applied_science_tech/filename.html The sitemap displays fine, you can see that at https://port.hull.ac.uk/campus/sitemap.html Any help very much appreciated! Cheers Carl <xsl:variable name = "navigation" select = "/cms:wrapper/child::*/navigation"/> <xsl:variable name = "sourceItem" select = "$navigation/descendant-or-self::nav-item[@location=/cms:wrapper/cms: source/@path]"/> <xsl:variable name = "sourceLoc" select = "/cms:wrapper/cms:source/@path"/> <xsl:variable name = "sourceDirectory" select = "/cms:wrapper/cms:source/@directory"/> <xsl:variable name = "sourceBaseName" select = "/cms:wrapper/cms:source/@basename"/> SITMAP <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE nav-template SYSTEM "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> <nav-template customLabel="Home" labelWith="custom" pattern="/index.xml" sortChildren="by-label"> <nav-template pattern="/*/index.xml"> <nav-template pattern="/*/*/index.xml"> <nav-template pattern="/*/*/*" /> <nav-template pattern="/*/*/*/index.xml"> <nav-template pattern="/*/*/*/*" /> </nav-template> </nav-template> </nav-template> </nav-template> BREADCRUMB <xsl:template name = "breadcrumb"> <xsl:param name = "item" select = "$navigation/nav-item[descendant-or-self::nav-item[@location=$sourceLoc]]"/> <xsl:if test = "$item"> <xsl:call-template name = "navigation-link-breadtest"> <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[descendant-or-self::nav-item[@location=$sourceLoc]]"/> </xsl:call-template> </xsl:if> </xsl:if> </xsl:template> <xsl:template name = "navigation-link-breadtest"> <xsl:param name = "item" select = "."/> <a class = "topmanu"><xsl:attribute name = "href"> <xsl:value-of select = "concat($baseurl,$item/@base,'.html')"/> </xsl:attribute> <xsl:value-of select = "$item/@label"/> </a> </xsl:template> -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-10-04 13:25:18
|
Hi Carl, If you could zip up your repository and project definition somewhere I could get to them, I'll take a closer look. Cheers, Alex On Oct 4, 2005, at 5:23 AM, Carl Barrow wrote: > Hi All > > Can anyone see anything wrong with my sitemap.xml file or the xsl that > generates a breadcrumb trail. I have been trying for a while to get > it working but for some reason I still can't get a breadcrumb to > display for index.html pages at the following level in the site : > /departments/academic_departments/applied_science_tech/index.html > > The strange thing is that it works fine for the rest of the site, > including: > /departments/academic_departments/applied_science_tech/filename.html > > The sitemap displays fine, you can see that at > https://port.hull.ac.uk/campus/sitemap.html > > Any help very much appreciated! > Cheers > Carl > > <xsl:variable name = "navigation" select = > "/cms:wrapper/child::*/navigation"/> > <xsl:variable name = "sourceItem" select = > "$navigation/descendant-or-self::nav-item[@location=/cms:wrapper/cms: > source/@path]"/> > <xsl:variable name = "sourceLoc" select = > "/cms:wrapper/cms:source/@path"/> > <xsl:variable name = "sourceDirectory" select = > "/cms:wrapper/cms:source/@directory"/> > <xsl:variable name = "sourceBaseName" select = > "/cms:wrapper/cms:source/@basename"/> > > > SITMAP > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE nav-template SYSTEM > "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> > <nav-template customLabel="Home" labelWith="custom" > pattern="/index.xml" sortChildren="by-label"> > <nav-template pattern="/*/index.xml"> > <nav-template pattern="/*/*/index.xml"> > <nav-template pattern="/*/*/*" /> > > <nav-template pattern="/*/*/*/index.xml"> > <nav-template pattern="/*/*/*/*" /> > </nav-template> > </nav-template> > </nav-template> > </nav-template> > > BREADCRUMB > <xsl:template name = "breadcrumb"> > <xsl:param name = "item" select = > "$navigation/nav-item[descendant-or-self::nav- > item[@location=$sourceLoc]]"/> > > <xsl:if test = "$item"> > <xsl:call-template name = "navigation-link-breadtest"> > <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[descendant-or-self::nav-item[@location=$sourceLoc]]"/> > </xsl:call-template> > </xsl:if> > </xsl:if> > </xsl:template> > > <xsl:template name = "navigation-link-breadtest"> > <xsl:param name = "item" select = "."/> > > <a class = "topmanu"><xsl:attribute name = "href"> > <xsl:value-of select = > "concat($baseurl,$item/@base,'.html')"/> > </xsl:attribute> > > <xsl:value-of select = "$item/@label"/> </a> > </xsl:template> > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2005-10-04 13:54:10
|
Thanks very much Alex, You will be able to the content at: http://www.hull.ac.uk/esig/hc/university-rep.zip http://www.hull.ac.uk/esig/hc/university.xml.zip Cheers Carl Alex Vigdor wrote: > Hi Carl, > If you could zip up your repository and project definition > somewhere I could get to them, I'll take a closer look. > > Cheers, > Alex > > On Oct 4, 2005, at 5:23 AM, Carl Barrow wrote: > >> Hi All >> >> Can anyone see anything wrong with my sitemap.xml file or the xsl >> that generates a breadcrumb trail. I have been trying for a while >> to get it working but for some reason I still can't get a breadcrumb >> to display for index.html pages at the following level in the site : >> /departments/academic_departments/applied_science_tech/index.html >> >> The strange thing is that it works fine for the rest of the site, >> including: >> /departments/academic_departments/applied_science_tech/filename.html >> >> The sitemap displays fine, you can see that at >> https://port.hull.ac.uk/campus/sitemap.html >> >> Any help very much appreciated! >> Cheers >> Carl >> >> <xsl:variable name = "navigation" select = >> "/cms:wrapper/child::*/navigation"/> >> <xsl:variable name = "sourceItem" select = >> "$navigation/descendant-or-self::nav-item[@location=/cms:wrapper/cms: >> source/@path]"/> >> <xsl:variable name = "sourceLoc" select = >> "/cms:wrapper/cms:source/@path"/> >> <xsl:variable name = "sourceDirectory" select = >> "/cms:wrapper/cms:source/@directory"/> >> <xsl:variable name = "sourceBaseName" select = >> "/cms:wrapper/cms:source/@basename"/> >> >> >> SITMAP >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE nav-template SYSTEM >> "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> >> <nav-template customLabel="Home" labelWith="custom" >> pattern="/index.xml" sortChildren="by-label"> >> <nav-template pattern="/*/index.xml"> >> <nav-template pattern="/*/*/index.xml"> >> <nav-template pattern="/*/*/*" /> >> >> <nav-template pattern="/*/*/*/index.xml"> >> <nav-template pattern="/*/*/*/*" /> >> </nav-template> >> </nav-template> >> </nav-template> >> </nav-template> >> >> BREADCRUMB >> <xsl:template name = "breadcrumb"> >> <xsl:param name = "item" select = >> "$navigation/nav-item[descendant-or-self::nav- >> item[@location=$sourceLoc]]"/> >> >> <xsl:if test = "$item"> >> <xsl:call-template name = "navigation-link-breadtest"> >> <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[descendant-or-self::nav-item[@location=$sourceLoc]]"/> >> </xsl:call-template> >> </xsl:if> >> </xsl:if> >> </xsl:template> >> >> <xsl:template name = "navigation-link-breadtest"> >> <xsl:param name = "item" select = "."/> >> >> <a class = "topmanu"><xsl:attribute name = "href"> >> <xsl:value-of select = >> "concat($baseurl,$item/@base,'.html')"/> >> </xsl:attribute> >> >> <xsl:value-of select = "$item/@label"/> </a> >> </xsl:template> >> >> -- >> ************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-10-04 14:33:30
|
Hi Carl, Looks like a typo in your project definition. In the declaration for the xml-doctype "/*/*/*/index.xml" you have <include data="yes" metadata="no" source="sitemap.xml" /> when you probably want <include data="yes" metadata="no" source="/sitemap.xml" /> Cheers, Alex On Oct 4, 2005, at 9:53 AM, Carl Barrow wrote: > Thanks very much Alex, > You will be able to the content at: > > http://www.hull.ac.uk/esig/hc/university-rep.zip > http://www.hull.ac.uk/esig/hc/university.xml.zip > > Cheers > Carl > > Alex Vigdor wrote: > >> Hi Carl, >> If you could zip up your repository and project definition >> somewhere I could get to them, I'll take a closer look. >> >> Cheers, >> Alex >> >> On Oct 4, 2005, at 5:23 AM, Carl Barrow wrote: >> >>> Hi All >>> >>> Can anyone see anything wrong with my sitemap.xml file or the xsl >>> that generates a breadcrumb trail. I have been trying for a while >>> to get it working but for some reason I still can't get a >>> breadcrumb to display for index.html pages at the following level >>> in the site : >>> /departments/academic_departments/applied_science_tech/index.html >>> >>> The strange thing is that it works fine for the rest of the site, >>> including: >>> /departments/academic_departments/applied_science_tech/filename.html >>> >>> The sitemap displays fine, you can see that at >>> https://port.hull.ac.uk/campus/sitemap.html >>> >>> Any help very much appreciated! >>> Cheers >>> Carl >>> >>> <xsl:variable name = "navigation" select = >>> "/cms:wrapper/child::*/navigation"/> >>> <xsl:variable name = "sourceItem" select = >>> "$navigation/descendant-or-self::nav-item[@location=/cms:wrapper/ >>> cms: source/@path]"/> >>> <xsl:variable name = "sourceLoc" select = >>> "/cms:wrapper/cms:source/@path"/> >>> <xsl:variable name = "sourceDirectory" select = >>> "/cms:wrapper/cms:source/@directory"/> >>> <xsl:variable name = "sourceBaseName" select = >>> "/cms:wrapper/cms:source/@basename"/> >>> >>> >>> SITMAP >>> <?xml version="1.0" encoding="UTF-8"?> >>> <!DOCTYPE nav-template SYSTEM >>> "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> >>> <nav-template customLabel="Home" labelWith="custom" >>> pattern="/index.xml" sortChildren="by-label"> >>> <nav-template pattern="/*/index.xml"> >>> <nav-template pattern="/*/*/index.xml"> >>> <nav-template pattern="/*/*/*" /> >>> >>> <nav-template pattern="/*/*/*/index.xml"> >>> <nav-template pattern="/*/*/*/*" /> >>> </nav-template> >>> </nav-template> >>> </nav-template> >>> </nav-template> >>> >>> BREADCRUMB >>> <xsl:template name = "breadcrumb"> >>> <xsl:param name = "item" select = >>> "$navigation/nav-item[descendant-or-self::nav- >>> item[@location=$sourceLoc]]"/> >>> >>> <xsl:if test = "$item"> >>> <xsl:call-template name = "navigation-link-breadtest"> >>> <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[descendant-or-self::nav- >>> item[@location=$sourceLoc]]"/> >>> </xsl:call-template> >>> </xsl:if> >>> </xsl:if> >>> </xsl:template> >>> >>> <xsl:template name = "navigation-link-breadtest"> >>> <xsl:param name = "item" select = "."/> >>> >>> <a class = "topmanu"><xsl:attribute name = "href"> >>> <xsl:value-of select = >>> "concat($baseurl,$item/@base,'.html')"/> >>> </xsl:attribute> >>> >>> <xsl:value-of select = "$item/@label"/> </a> >>> </xsl:template> >>> >>> -- >>> ************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: >>> Power Architecture Resource Center: Free content, downloads, >>> discussions, >>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |