Implementing ‘Inheritance’ in XML

Some XML vocabularies implement a powerful XML pattern that is analogous to inheritance in programming language type systems.  Open XML WordprocessingML has these semantics around styles.  When you define a new style, you can base this style on another style, and if the new style doesn’t explicitly define some aspect of the style, the new…

11

Transforming Open XML Word-Processing Documents to Html (Post #3)

Over the last couple of weeks, and over the next week, I’ve been designing and writing some code to convert Open XML word-processing documents to HTML (or Xhtml).  My first post described in broad strokes my goals, my motivations for writing this code, and some details about the approach that I’m considering.  My second post…

7

Transforming Open XML Word-Processing Documents to XHtml (Post #2)

Last week, I blogged about a small project that I’m embarking on: to make a reasonably accurate transform from Open XML word-processing markup to XHTML.  I wrote about the approach that I’ll be taking, and my initial thoughts about how to proceed.  I’ve done a bit of research, and this week, I’ll lay out more…

1

Transforming Open XML Word-Processing Documents to XHtml

Over the next couple of weeks, I’m going to spend some time writing some LINQ to XML code to transform pen XML word-processing documents to XHtml.  Just for fun, as I go, I’m going to post my progress, posting the code, talking about the issues I come across, and in general, being transparent about this…

4

New Open XML Developer Center on MSDN

As most developers who work with Microsoft technologies know, there are Developer Centers on MSDN.  Each developer center, run by a team devoted to the technology, contains the best resources for that technology, including links to SDK downloads, documentation, whitepapers, code samples on Code Gallery and CodePlex, bloggers and their posts, forums, and more.  These…


Update to CommentMerger.MergeComments Method

Word 2007 has a feature where you can lock a document, preventing any changes to content, yet allowing the user to add comments.  CommentMerger is a small method (~400 lines of code) that merges comments from two documents into a single document, provided the two contain the same content.  This code is part of the…

1

The Use of Extension Methods to Manage Open XML Document Changes in PowerTools for Open XML

There is an interesting approach that we use in PowerTools for Open XML that makes it easy to write cmdlets that modify Open XML documents.  This approach isn’t very complicated, but aspects of this approach need some explanation so that developers who are extending the PowerTools can understand what’s going on.  This approach is based…

2

Using DocumentBuilder with Content Controls for Document Assembly

DocumentBuilder is an example class that’s part of the PowerTools for Open XML project that enables you to assemble new documents from existing documents.  One of the problems to solve when moving markup from one document to another is that of interrelated markup – markup in one paragraph often has dependencies with markup in other…

3

Getting Started with PowerTools for Open XML Development

There are a number of resources and guidelines that PowerTools for Open XML developers need in order to write PowerShell cmdlets for processing Open XML documents.  This post presents a few tips for getting started developing PowerTools cmdlets. Getting Started This blog is inactive.New blog: EricWhite.com/blogBlog TOCThe first place to start is the Windows PowerShell Programmer’s Guide. …

1

Release of PowerTools for Open XML v1.1.1

PowerTools for Open XML v1.1.1 source code and binaries are now available.  PowerTools for Open XML is an open source project on CodePlex that enables creation and processing of Open XML documents using PowerShell.  This is a minor release that addresses four issues. This blog is inactive.New blog: EricWhite.com/blog Blog TOCFor information about PowerTools for Open…

2