Hi all! I'm not that sure, but I think I found a bug in the search-generator of lucene!
When I start a search with lucene the search-generator returns the following xml-document: <?xml version="1.0" encoding="UTF-8"?> <results xmlns:search="http://apache.org/cocoon/search/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://apache.org/cocoon/search/1.0" date="1062755176496" query-string="test" start-index="0" page-length="10"> <hits total-count="2" count-of-pages="1"> <hit rank="0" score="0.65923184" uri="/site/main-about"/> <hit rank="1" score="0.31874946" uri="/site/main-profil"/> </hits> <navigation total-count="2" count-of-pages="1" has-next="false" has-previous="false" next-index="2" previous-index="0"> <navigation-page start-index="0"/> </navigation> </results> trying to format the result with a stylesheets results in many problems. the following is not working: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:result="http://apache.org/cocoon/search/1.0"> <xsl:output method="html"/> <xsl:template match="/"> <xsl:apply-templates select="result:results"/> </xsl:template> <xsl:template match="result:results"> <xsl:value-of select="@query-string"/> </xsl:template> </xsl:stylesheet> I don't get the value .. using attribute::query-string is even not working. using attribute::*[position()=2] is working.. so I gess the generator is not doing right because when I copy the resulting xml per copy-paste into a file and read it with the filegenerator, the whole thing is working (even with @query-string)! I think there is something going wrong with namespace and attributes - maybe they get one even if they are not allowed to .. or am I doing something wrong .. maybe someone can check / fix it thank you freddy btw: the sitemap-parts <map:match pattern="find"> <map:generate type="search"> <map:parameter name="query" value="{request-param:query}"/> </map:generate> <!--<map:transform src="stylesheets/searchresult.xsl"/>--> <map:serialize type="xml"/> </map:match> <map:match pattern="searchresult"> <!--<map:generate src="cocoon://Search/find">--> <!--<map:parameter name="query" value="{request-param:query}"/>--> <!--</map:generate>--> <map:generate type="file" src="context:/Search/documents/results.xml"/> <map:transform src="stylesheets/searchresult.xsl"/> <map:serialize type="html"/> </map:match> </map:pipeline>
