Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what does select="." mean? 1

Status
Not open for further replies.

tlhawkins

Programmer
Dec 28, 2000
797
US
I can't seem to find any reference that explains this.

Thanks
 
It specifies the current node. You will often see this in an xsl:value-of:
Code:
<xsl:for-each select="//action">
    <new-action><xsl:value-of select="."/></new-action>
</xsl:for-each>
In this example, the for-each will 'execute' once for each node in the nodeset gathered up by //action. Within the for-each, the context is the current node of that nodeset, so this outputs the value of each different action node.

This is XPath shorthand for the self axis. Learn more about XPath here.

Tom Morrison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top