lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radha C." <>
Subject RE: XSLT Response for multivalue fields
Date Tue, 13 Oct 2009 12:37:39 GMT

Hi Brain,

You can try this xpath in your xls template,

<xsl:for-each select="arr[@name='author']/str">
                      <xsl:value-of select="."/>


-----Original Message-----
From: blholmes [] 
Sent: Tuesday, October 13, 2009 6:30 AM
Subject: XSLT Response for multivalue fields

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
Here is what solr returns normally
<arr name="author">
<str>Crista  Souza</str>
<str>Darrell  Dunn</str>

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

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:
Sent from the Solr - User mailing list archive at

View raw message