Yes I am fairly new to XSLT. I used the velocity response writer for some prototypes. I found it very intuitive. But the requirement for the app specifically rules it out and mandates the XSLT approach. I have finally got it working. Thanks to all your help. Here's what I got (a minor correction on your final suggestion; again, it is using the attributes here.). Here's the final result for anyone else trying to do something similar.
<xsl:template match='/'> <IMAGES> <xsl:apply-templates select="response/result/doc"/> </IMAGES> </xsl:template> <xsl:template match="doc"> <ID NewID="{str[@name='id']}" > <xsl:apply-templates select="bool[@name='pr']"/> </ID> </xsl:template> <xsl:template match="bool[.='false']"> <xsl:attribute name="{@name}">0</xsl:attribute> </xsl:template> <xsl:template match="bool[.='true']"> <xsl:attribute name="{@name}">1</xsl:attribute> </xsl:template> Thanks again Upayavira. -- View this message in context: http://lucene.472066.n3.nabble.com/XSLT-with-maps-tp4218518p4219015.html Sent from the Solr - User mailing list archive at Nabble.com.