Creating an XSLT View
In the XSLT-based AJAX architecture, you might want to create one or more views per data schema. Each view is implemented through a template and used to render data based on a data schema. The data schema you use is defined by the WCF service’s data contract. In the following example, I’ll create a navigational control based on a list of topics. The Catalog service defined at the endpoint http://localhost:8080/Web/Services/CatalogService.svc/Default/Topics produces an XML document similar to Example 9-2. It’s important to have a source XML document when you develop the XSLT so that you can test the output as you work. Example 9-3 demonstrates the output document from the sample application’s Catalog service.
Example 9-2. To ...
Get Developing Service-Oriented AJAX Applications on the Microsoft® Platform now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.