Tech Head Brothers new authoring tool, step 4
I took some time this evening to work a bit on the new version of the publishing tool for Tech Head Brothers.
In this scenario an author launch the Tech Head Brothers Word 2007 template, write the content of his article, then click on preview (“pré-visualisation” on the picture) ribbon button. This is a full offline scenario.
Behind the scene, the C# code associated with the Word 2007 template will do a projection of WordML to my own XML document format using a predefined XML Schema. This projection is done using LINQ to XML. Then it will make a XSLT transformation on that projection result, save the result as a html file and launch Internet Explorer to see the result, as you can see on the picture:
I am still missing some projection code for hyperlink, list, pictures and source code. But it is a very good start after 3-4 evening of work.
So the next steps will be:
- Projection of hyperlink
- Projection of picture
- Projection of numbered list and bullet list
- Giving the possibility to insert source code
- Projection of the source code
- Adding the possibility to the author to post the article directly from Word to Tech Head Brothers web site using secured web services made out of WCF
I really like LINQ (hidden message to a friend at MS ;)