Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 817119 - Last Review: June 21, 2007 - Revision: 3.2
XSL tag appears in a textbox instead of the correct value in SharePoint Designer 2007 or in FrontPage 2003
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.
When you put a tag in the
Initial Value
box, the textbox displays the text that you type in the
Initial
Value box.
To resolve this issue, replace the XSL tag with the name of
the field. To do this, follow these steps:
SharePoint Designer 2007
- 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. - Double-click the textbox to display the
Properties dialog box.
- 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. - On the File menu, click
Save.
- On the File menu, click Preview in Browser and select the browser you want to view the page in.
FrontPage 2003
- 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. - Double-click the textbox to display the
Properties dialog box.
- 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. - On the File menu, click
Save.
- In the text lower-left corner of the FrontPage 2003 Design
window, click Preview.
APPLIES TO
- Microsoft Office SharePoint Designer 2007
- Microsoft Office FrontPage 2003
| kbxml kbdisplay kbprb KB817119 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate