16.01.2013 Views

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 32: Using <strong>Microsoft</strong> Office FrontPage 2003 to Customize SharePoint <strong>Products</strong> 907<br />

F32XR51<br />

Figure 32-51 Data View with new style in Internet Explorer<br />

As mentioned before, Data Views provide WYSIWYG formatting using XSL<br />

Transformations. The mouse clicks <strong>and</strong> other actions performed in the previous<br />

steps generated XSLT code <strong>and</strong> put this code inline within the HTML of your page.<br />

To see this, ensure that DataView.aspx is open in Design view in FrontPage<br />

2003, <strong>and</strong> click anywhere on the Data View. Now switch to Split view by clicking on<br />

Split in the View Selection bar at the bottom left of the page. This displays both the<br />

code <strong>and</strong> the design surface simultaneously. The code corresponding to the Data<br />

View is automatically highlighted in the code pane. Notice that XSLTs appear as<br />

CDATA with the tag. FrontPage 2003 generated these stylesheet transformations<br />

because of your actions in the WYSIWYG user interface.<br />

Manually Editing XSLT<br />

The auto-generated XSLTs can also be manually edited to allow a high degree of<br />

flexibility to the author of the page. We will look at a simple illustration of this. Suppose<br />

that you wanted to change the string CompanyName in the Data View so that<br />

it is italicized instead of boldfaced. Again, we will continue formatting the Data View<br />

we added to the DataView.aspx page in the previous section.<br />

To manually edit the XSLT<br />

1. Position the cursor anywhere on the Data View on the DataView.aspx page<br />

<strong>and</strong> switch to the Split view. By positioning the cursor first, FrontPage 2003<br />

will position the Code pane at the location of the cursor on the page, making<br />

it easier to find the code associated with the element on the page.<br />

2. In the code pane, locate the set of lines in the highlighted text that set the<br />

format for CompanyName.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!