SharePoint 2007: The Definitive Guide
by James Pyles, Christopher M. Buechler, Bob Fox, Murray Gordon, Michael Lotter, Jason Medero, Nilesh Mehta, Joris Poelmans, Christopher Pragash, Piotr Prussak, Christopher J. Regan
Using XML Web Parts
As mentioned at the beginning of this chapter, you can use this Web Part to display XML-formatted data and apply XSLT to style the data prior to showing it.

Figure 8-19. Validating the addition of a user to a group
Custom Properties of the XML Web Part
As with the other Web Parts discussed in this chapter, the XML Web Part possesses a set of unique properties:
- XML Editor
This is a plain-text editor that you can use to write XML code. Knowledge of XML is necessary to use this editor.
- XML Link
This property contains a field where you can enter a hyperlink to a file containing XML content. Valid hypertext protocols are http:// and https://.
- XSL Editor
This is a plain-text editor that you can use to enter XSLT source code. Knowledge of XSLT is required to use this editor.
- XSL Link
This property contains a field where you can enter a hyperlink to a file containing XSLT content. Valid hypertext protocols are http:// and https://.
Using the Source Editors in the XML Web Part is almost the same as using the Source Editor in the Content Editor Web Part, as you can see in XML Web Part. When you click either the XML Editor or XSL Editor buttons, a blank text editor opens, just as in the Content Editor Web Part. You are free to enter the appropriate XML or XSLT content or to use the XML or XSL Links to link to pages containing the relevant content, as shown in Figure 8-20.
Figure 8-20. XML ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access