Processing XML Documents Using Style Sheets

In the previous sections, you saw how to create a schema to define and validate the structure of an XML document. One of the reasons to use schemas is to make your applications more flexible and easier to maintain by dissociating the definition of an XML document from the data found in that document. XML also provides a technology that enables you to define how a given document should be displayed, in a way that is similarly dissociated from the data document itself. This technology is known as XML style sheets, or XSL.

Like XML schemas, XSL style sheets are themselves XML documents, so you don't have to learn a whole new set of data structures to use XSL. However, you will have to ascend a bit of a ...

Get C#® Developer's Guide to ASP.NET, XML, and ADO.NET 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.