lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sreekant Sreedharan <>
Subject Re: XSLT with maps
Date Thu, 23 Jul 2015 09:15:04 GMT
Well, if you had a result say:
  <str name="id">589587B2B1CA4C4683FC106967E7C326</str>
  <str name="ar">EE3YYK</str>
  <int name="age">31034</int>

applying the template:

<xsl:template match="doc">
  <ID NewID="{@id}" ... />

would result in the following XML:

   <ID NewID=""/>

This is because 'id' is not an attribute of 'doc'. It is not even the
attribute of doc/str. It is a value of doc/str/@name. But the problem is
 1) doc/str/@name can refer to either 'id', or 'ar' and 
 2) if the attribute is 'age' then the referred values is not doc/str/@name,
but doc/int/@name

Is there a simpler way to work with this?

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message