1<xsl:stylesheet version="1.0" 2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 xmlns:exsl="http://exslt.org/common" 4 xmlns:set="http://exslt.org/sets" 5 extension-element-prefixes="exsl set" 6 exclude-result-prefixes="exsl set" 7> 8 9<xsl:output method="xml"/> 10 11<!-- This works as is. Comment out the p element and un-comment the error line. --> 12<xsl:template match="/"> 13 <results> 14 <xsl:variable name="n"> 15 <p></p> 16 </xsl:variable> 17 <xsl:copy-of select="set:distinct(exsl:node-set($n)/p/a)"/> 18 </results> 19</xsl:template> 20 21</xsl:stylesheet> 22 23