Can you post the xml return when you hit search-popular-pages.xml without /hs.xsl/ in the path? Something like:
http://host:port/cps/rde/xchg/project/search-popular-pages.xml That will give us the clue. Henry Lu On Fri, Jan 16, 2009 at 10:38 AM, Chris Crawford < [email protected]> wrote: > > Hello everyone. I have a question that hopefully someone else has run > across or knows what to do. > > We've had LiveServer for about 2 or 3 years but have never used it. I > went to training about two years ago, so needless to say, I've > forgotten much of what they taught us. > > I've been working back through the training manuals to reteach myself > Liveserver, and I came across something that just does not work. I've > found other errors in the training manual that I've been able to > figure out, but this one escapes me. Here is the situation: > > 1) I'm working through the Edusite training manual. > 2) I have a content attribute called "hitcount" attached to a page so > that any time the page is visited the value of the attribute is > increased by 1. (This works fine.) > 3) I have an XML file called search-popular-pages.xml which does a > search and returns a list of the 4 most visited pages based on the > "hitcount" attribute. (This works fine.) > 4) I'm using an XSL file to format the results of the search so that > they display properly on the page. (This kind of works.) > 5) The problem is that the page is also supposed to display the value > of the "hitcount" attribute, but it does not. Here is the code for the > XSL file that's being applied to the search results: > > <?xml version="1.0" encoding="UTF-8"?> > <templates> > <xsl:template match="popular-pages"> > <xsl:for-each select="page"> > <li> > <xsl:element name="a"> > <xsl:attribute name="href"> > <xsl:value-of select="name" /> > </xsl:attribute> > <xsl:value-of select="title" /> > [<xsl:value-of select="rde-rd:contentattributes/rde- > rd:attribu...@name='hitcount']/rde-rd:value" />] > </xsl:element> > </li> > </xsl:for-each> > </xsl:template> > </templates> > > I get the square brackets, but I do not get the value of the attribute > returned. I searched through all the manuals I have for an example of > using a Dynament call within an XSL file, but I could not find one. > > Does anyone have any ideas what the problem may be? > > Thank you all for your help. -chris > > Chris Crawford > Web Administrator > Tupelo Public School District > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/RedDot-CMS-Users?hl=en -~----------~----~----~----~------~----~------~--~---
