Chris--

There is nothing wrong with your code. Judging from the xml return though,
the "hitcount" attribute has no value on the page returned. Otherwise there
should be a block like this:

 *-* <http://192.168.1.34:8080/cps/rde/xchg/rge/hit-counter.xml#> <
rde-rd:contentattributes>
 *-* <http://192.168.1.34:8080/cps/rde/xchg/rge/hit-counter.xml#> <
rde-rd:attribute name="*hitcount*" passwordFlag="*false*" xmlns:fo="*
http://www.w3.org/1999/XSL/Format*"; xmlns:rde="*http://www.reddot.de/rde/ns*
" xmlns:rde-dm="*http://www.reddot.de/rde/ns/dm*"; xmlns:rde-fdl="*
http://www.reddot.de/rde/ns/fdl*"; xmlns:rde-idea="*
http://www.reddot.de/rde/ns/idea*"; xmlns:rde-rd="*
http://www.reddot.de/2000/rde/rd*"; xmlns:rde-rdf="*
http://www.reddot.de/rde/ns/rdf*"; xmlns:rde-xmaps="*
http://www.reddot.de/rde/ns/xmaps*"; xmlns:rdf="*
http://www.w3.org/TR/REC-rdf-syntax/*"; xmlns:xsl="*
http://www.w3.org/1999/XSL/Transform*"; xmlns:xsl-template="*
http://www.reddot.de/rde/ns/template*";>
 * * <rde-rd:value>*xx*</rde-rd:value>
* * </rde-rd:attribute>
* * </rde-rd:contentattributes>
To see if that attribute value is indeed embedded into that returned page,
you can put a dynamnet like this in the page itelf and view the page via a
browser with normal xsl:

<rde-dm:attribute mode="read" attribute="hitcount" source="content" />

This should write the hitcount value onto the page where you placed the
dynament.

You should also go to admin, expand search engine, expand content attributes
and make sure "hitcount" is actually mapped there.

If all other fails, try re-index the project.

Let me know if it works.

Henry Lu



On Fri, Jan 16, 2009 at 12:37 PM, Chris Crawford <
[email protected]> wrote:

>
> Thanks for helping Henry. Here is the resulting XML from the search.
> The search returns 4 results, but I've removed the all but the first
> one due to the length. It doesn't look like the result of the search
> returns the "hitcount" content attribute of the page, and I'm figuring
> that's why the dynament in the XSL file is trying to make the call.
>
> Here is the XML from the search results:
>
>  <popular-pages chunk="1" chunksize="4" context-mode="mixed" context-
> tags="title;search-title" error="0" external-only="" highlight="no"
> hits="6" include-mode="content-info;context-tags" lastchunk="2"
> locale="en" maxhits="" nextchunk="2" project="edusite" repository=""
> searchengine="target" sortedby="hitcount" sortorder="desc">
> - <page constraints="matched" content="generix.htm" group="html files"
> hit="1" locale="en" name="generix.htm" project="edusite">
>  <locale>en</locale>
>  <type>HTML</type>
>  <name>generix.htm</name>
>  <released>true</released>
>  <guid>standardcontentimpl-a351c1c-11ebc594cd8-24b1cea02f4fd562</
> guid>
>  <group>html files</group>
>  <description />
>  <last-updated>2009-01-15 15:21:10.052</last-updated>
>  <search-title />
>  <title>Generix</title>
>  </page>
> -</popular-pages>
>
> By the way, here is the XML for the search incase you would like to
> see that also:
>
> <dynaments>
> <rde-dm:target tag="popular-pages"
>               item-tag="page"
>               sortedby="hitcount"
>               sortorder="desc"
>               chunksize="4"
>               attributepath="."
>               include-mode="content-info;context-tags"
>               context-tags="title;search-title">
> <rde-dm:constraint>
>  content.hitcount GT "0"
> </rde-dm:constraint>
> </rde-dm:target>
> </dynaments>
>
> Thanks again for the help. -chris
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to