lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blholmes <blhol...@sffind.com>
Subject XSLT Response for multivalue fields
Date Tue, 13 Oct 2009 01:00:21 GMT

I am having trouble generating the xsl file for multivalue entries. I'm not
sure I'm missing something, or if this is how it is supposed to function. I
have to authors and I'd like to have seperate ByLine notes in my
translation.
Here is what solr returns normally
...
<arr name="author">
<str>Crista  Souza</str>
<str>Darrell  Dunn</str>
</arr>

Here is my xsl
                <xsl:for-each select="arr[@name='author']::*">
                   <ByLine>
                            <xsl:value-of select="."/>
                   </ByLine>
                </xsl:for-each>


And here is what it is returning:
<ByLine>Crista  SouzaDarrell  Dunn</ByLine>

I was expecting it to return 
<ByLine>Crista  Souza</ByLine>
<ByLine>Darrell  Dunn</ByLine>

I've tried other variations and using templates instead but it keeps
displaying the same thing, one ByLine field with things mushed together.

Any clues if this is an issue with xslt code, the xslt response Writer,
XALAN, or solr? I've no clues where to go from here. Any ideas to point me
in the right direction appreciated.
-- 
View this message in context: http://www.nabble.com/XSLT-Response-for-multivalue-fields-tp25865618p25865618.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message