Library tutorials & articles

Using ADO.NET, XML & XSL to generate HTML

Introduction

If your website has several pages with a similar layout it can become a pain to update using an HTML editor. What is needed is a way to automate the page generation from database tables, XML, & XSL files. By separating content and page layout for you website it is much easier to update repetitive content or easily change the style of every page.  Simple content can be maintained in a database.  Other content can be maintained in XML files.  More complex content can be generated using your favorite HTML editor without worrying about the extras that go on the top, bottom and sides of the page.  Using a program or script all the pieces can be put together to build a complete website.  A batch process can be used to generate the pages to be uploaded to a server where you don't have access to server side scripting or programming.  By keeping your content and style sheets modular you will be more prepare for the day when you can move your site to an ASP.NET server.  Modular content will be needed when you start thinking about supporting multiple browser types, such as mobile devices and voice.

Comments

  1. 11 Dec 2005 at 12:31

    Hi,


    do you have any experiences about the performance of automate generated HTML by XSL & XML


    for example which one is faster:


    1. seperate Asp-Sites
    2. 1 Asp-Site that was generated by 1 XSL-Site (C# XslTransform)


    Thanks
    Schneeblitz

  2. 22 Sep 2005 at 09:42

    how would you be able to that in ASP.Net 2.0.....

  3. 14 Oct 2002 at 06:27
    Generating XML documents and associating them with style sheets is a great way of creating reports.
    The user can view database information, statistics, etc... using plain html text and print them in a neat
    format.
  4. 01 Jan 1999 at 00:00

    This thread is for discussions of Using ADO.NET, XML & XSL to generate HTML.

Leave a comment

Sign in or Join us (it's free).

Bill Burris
AddThis

Related podcasts

  • A Practical Look at Silverlight 2 Part 1

    Now that Silverlight 2 is at the Olympics and making a big splash, we wanted to explore this fascinating technology more. Microsoft Silverlight 2 is a cross-browser, cross-platform, and cross-device plug-in for delivering the next generation of .NET based media experiences and rich interactive ap...

Events coming up

  • Nov 18

    15 Minutes of Fame

    Dresher, United States

    This is a yearly tradition. We select 10 of the favorite speakers from monthly meetings, code camps, and hands on labs. Each one does a 15 minute talk on their favorite .NET technology. This is our 10th anniversary so we plan a gala event with special prizes and refreshments.

Want to stay in touch with what's going on? Follow us on twitter!