Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XSL tag appears in a textbox instead of the correct value in SharePoint Designer 2007 or in FrontPage 2003


View products that this article applies to.

Symptoms

You create a textbox inside a Data View Web Part in Microsoft Office SharePoint Designer 2007 or in Microsoft Office FrontPage 2003. When you try to populate the Initial Value box of the textbox with an Extensible Stylesheets Language (XSL) attribute tag to represent the value of that field, the textbox may display the XSL tag. When you preview the page, the tag does not resolve to the value that the tag represents.

↑ Back to the top


Cause

When you put a tag in the Initial Value box, the textbox displays the text that you type in the Initial Value box.

↑ Back to the top


Resolution

To resolve this issue, replace the XSL tag with the name of the field. To do this, follow these steps:

SharePoint Designer 2007

  1. Start SharePoint Designer 2007, and then open the page that you are having problems with.

    Note To create a textbox in SharePoint Designer 2007, in the Toolbox pane, under Form Controls, right-click Input (text), and then click Insert.
  2. Double-click the textbox to display the Properties dialog box.
  3. In the Initial Value box, type the name of the field that you want to appear in the textbox surrounded with curly braces and preceded by the @ symbol, and then click OK.

    For example, if you want to display the value of the Title field in the textbox, type {@Title} in the Initial Value box of the textbox.
  4. On the File menu, click Save.
  5. On the File menu, click Preview in Browser and select the browser you want to view the page in.

FrontPage 2003

  1. Start FrontPage 2003, and then open the page that you are having problems with.

    Note To create a textbox in FrontPage 2003, point to Form on the Insert menu, and then click textbox.
  2. Double-click the textbox to display the Properties dialog box.
  3. In the Initial Value box, type the name of the field that you want to appear in the textbox surrounded with curly braces and preceded by the @ symbol, and then click OK.

    For example, if you want to display the value of the Title field in the textbox, type {@Title} in the Initial Value box of the textbox.
  4. On the File menu, click Save.
  5. In the text lower-left corner of the FrontPage 2003 Design window, click Preview.

↑ Back to the top


Keywords: KB817119, kbprb, kbdisplay, kbxml

↑ Back to the top

Article Info
Article ID : 817119
Revision : 5
Created on : 6/21/2007
Published on : 6/21/2007
Exists online : False
Views : 358