O'Reilly logo

Microsoft® Visual J#™ .NET (Core Reference) by John/Longshaw, Andy Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Applying Stylesheets to XML Documents

By now you should be convinced of the benefits of using XSLT stylesheets. The next step is to apply them in your J# applications. To do this, you have to answer certain questions:

  • Where will you get the XML document from?

  • Which transformation do you want to apply to it?

  • What do you want done with the output XML document?

These three questions match up with the three documents involved in an XSLT-based transformation (source XML, XSLT stylesheet, output XML). In this section, we’ll examine how the .NET Framework answers these questions. In one example, you’ll also see how to apply transformations to data held in ADO.NET DataSet objects.

As test data for this section, we’ll use the sample CakeCatalog.xml file and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required