Well I guess I oversimplified things. My goal is to transform a SOLR response that looks like:
<response> ... <result name="response" numFound="202" start="0"> <doc> <str name="id">589587B2B1CA4C4683FC106967E7C326</str> .... </doc> </result> </response> into something that looks like <IMAGES> <ID NewID="589587B2B1CA4C4683FC106967E7C326" .... /> </IMAGES> Where the SOLR field 'id' is mapped to an attribute 'NewID' in the expected result. Is there a simpler way to do this? I could only come up with something like: ... <xsl:template match="doc"> <ID> <xsl:for-each select="*"> <xsl:attribute name="{"$vMap[@from = @name]/@to)}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:for-each> </ID> </xsl:template> Which I think requires a map. Regards, Sreekant -- View this message in context: http://lucene.472066.n3.nabble.com/XSLT-with-maps-tp4218518p4218530.html Sent from the Solr - User mailing list archive at Nabble.com.