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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use <xsl:value-of select> to display a value in SharePoint 1

Status
Not open for further replies.

ColonelBlue

Technical User
Jun 24, 2004
110
US
I copied a <xsl:value-of select="UserName" /> from a page to the top of a page where I can say Welcome UserName in SharePoint Designer
But it doesn't seem to work. I did the same thing with the generated results of rows ( count:number ) and tried to copy that to the top of the page but that doesn't work either.

Coming from the old school of.asp ( classic as they call it now ) where i would just use:
<% Response.Write Request.QueryString("name") %> I am totally clueless with this xsl code.

What am I doing wrong?
Does <xsl:value-of select="UserName" /> have to be between some other code?

And for the row count. Why would it only work at the bottom of the page or again am I coding that incorrectly?

Thanks in advance.
 
hey Colonel,

you seem to have picked the "<xsl:value-of select="UserName" />" from a data view web part. It is useless without it being in an XSL template.

Just create a new data view web part and place it at your wherever you want to display the name.

that should work.

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top