xsl-list
[Top] [All Lists]

RE: what could select="self:node()[false()] be for?

2002-10-19 09:08:30

XSLTC compiles the following template but at runtime throws 
an error. Does anyone have a clue what the line

  <xsl:param name="data" select="self::node()[false()]"/>

could be doing; is supposed to do; does it make any sense?

Yes, it says that the default value of the parameter is an empty
node-set. Other ways of saying this are equally bizarre: "/.." is
popular, and I quite like "@text()". XPath 2.0 is much less fun, you
just write "()".

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 



<xsl:template name="POP_UP">
<xsl:param name="id"/>
<xsl:param name="data" select="self::node()[false()]"/> 
</xsl:template>

 Tom Amiro

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>