wordpress hit counter
Welcome to OpenXML Developer Sign in | Join | Help

WordProcessingML Transform XSLT

Last post 06-02-2009, 10:43 PM by DanielM. 1 replies.
Sort Posts: Previous Next
  •  05-14-2009, 9:48 AM 4644

    WordProcessingML Transform XSLT

    I am using Office 2003 (Ms Word), i need to remove all the style and reset to normal style XSL transformation, ( i am using XSLT templates) with WordML transform

     

    how can i do this, please provide me your suggestion and solutions

     

    Orcas

     

  •  06-02-2009, 10:43 PM 4797 in reply to 4644

    Re: WordProcessingML Transform XSLT

    Hi Orcas,

    I'm not sure exactly what your issue is, but it sounds like you're trying to remove all styles applied to a document created by Word 2003 by using the WordProcessingML transformation tool described here.

    There are a few problems with this:
    • Word 2003 does not 'do' OpenXML, unless you have the Office2007 compatibility pack installed. To make use of the OpenXML SDK, you need your documents to be in the OpenXML format (docx).
    • The WordProcessingML transformation tool is designed to convert XML to a Word2007 document, i.e. so the document contains the underlying data and so that you don't need to spend time manually editing raw XML into a format fit for presentation. My guess is that this applies to XML files in general, not specifically conforming to the OpenXML schema. I'm not sure if this preserves any specific attributes (within element tags) either.
    • To remove all extraneous styles, you'd need to define your own XSL transformation to achieve this. Any specific style references would need to be removed or replaced with that of the 'Normal' style. Have a look at section 2.7 (including 2.7.7) of the OpenXML Markup Reference, section 2.8 of the Primer and 11.3.12 of the Fundamentals for details of how styles are declared and referenced.
    Hope this helps.

    -Daniel
View as RSS news feed in XML