rendered paste body<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="xml" indent="yes"/> <xsl:strip-space elements="*"/> <xsl:variable name="keyvalue" select="/plist//key|/plist//string"/> <xsl:template match="/" priority="1.0"> <xsl:element name="file-locations"> <xsl:apply-templates select="$keyvalue"/> </xsl:element> </xsl:template> <xsl:template match="key"> <xsl:if test="current()/text()='Location'"> <xsl:variable name="nextposition" select="position()+1"/> <xsl:element name="location"> <xsl:value-of select="$keyvalue[position() = $nextposition]"/> </xsl:element> </xsl:if> </xsl:template> <xsl:template match="string"/> </xsl:stylesheet>