Peter Taylor's WebLog

An XML "build" system.

I've received some mail requesting more information on what exactly comprises an 'xml build system'. Some have asked why we just don't deliver xml and have xslt transform the document on the server before it's sent down to the browser. Thus, I'm going to backtrack even more and explain a little more about the requirements of our xml publishing tools.

My team generates electronic documentation which is published to multiple target platforms. MS Help 1.0 and 2.0, the MSDN web site, even MS Press. One of the requirements of our build system is that it be able to create files of various types - asp, asp.net, regular old html, others - from authored xml source.

The process looks like this:

authored xml file -> build application -> asp, htm, aspx, xml.

At its most basic, the 'build application' mentioned above does a couple of things:

  1. Loads up the authored xml file
  2. Apply xslt to xml file and cache results
  3. Save cached results of xslt transform to a file

By the way, I'd like to give a shout out to my biggest fan, Josh.

Published Wednesday, May 05, 2004 11:59 AM by PeterTaylor

Comments

 

Josh said:

Thanks Peter! Your blog continues to help me in my everyday work.

And speaking of everyday work, why not try MSDN Magazine? http://msdn.microsoft.com/msdnmag. Subscribe today!
May 5, 2004 12:26 PM
 

ksuh said:

Ant does pretty well what you describe.
May 5, 2004 2:02 PM
 

Peter Taylor said:

Huh, interesting. I just went and checked it out here: http://ant.apache.org/index.html. Ant does do what I described and a lot more, obviously.

It's ridiculously easy to write a similar tool using the .Net frameworks as well - not as full-featured of course. But if all you want to do is load up some xml, apply a transform to it, and save the result it can be accomplished in a few lines of C#.
May 5, 2004 2:28 PM
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker