Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 831094 - Last Review: June 4, 2007 - Revision: 3.3
How to add a column to an XSLT Data View that counts the lines in that Data View in Expression Web, in SharePoint Designer 2007, or in FrontPage 2003
This article describes how to insert a column in an XSLT
Data View that counts the number of records in that Data View.
When you insert a Data View Web Part, you can add a column
to the table and have it display a running count of records in your XSLT Data
View. To add a column to your XSLT Data View, Follow these steps:
- Put the insertion point inside any table cell that contains
XML data.
- On the Table menu, point to
Insert, and then click Rows or
Columns.
- Click Columns, and then click
OK.
- Put the insertion point inside one of the new table cells
that you created in the same row as the data that you want to work
with.
Do not use the header row of the table for this
purpose. - Click the down arrow next to the
<td> button on the Quick Tag Selector
tool bar.
- Click Insert HTML.
- Replace "<>" with
<xsl:number/>.
- Click the green checkmark to approve the change.
You will now have a value in each row that indicates the number
of records in the Data View.
APPLIES TO
- Microsoft Windows SharePoint Services 2.0
- Microsoft Office SharePoint Designer 2007
- Microsoft Expression Web
- Microsoft Office FrontPage 2003
| kbview kbwebpublishing kbxml kbweb kbhowto KB831094 |
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