<xsl:value-of select="$pis[$count]"/>
</xsl:variable>
<xsl:choose>
- <xsl:when test="contains($pi,concat($attribute, '='))">
- <xsl:variable name="rest" select="substring-after($pi,concat($attribute,'='))"/>
+ <xsl:when test="contains($pi,concat(' ', $attribute, '='))">
+ <xsl:variable name="rest" select="substring-after($pi,concat(' ', $attribute,'='))"/>
<xsl:variable name="quote" select="substring($rest,1,1)"/>
<xsl:value-of select="substring-before(substring($rest,2),$quote)"/>
</xsl:when>