wordpress hit counter
WordProcessingML Transform XSLT - WordprocessingML - Formats - OpenXML Developer

WordProcessingML Transform XSLT

Formats

Discussions about working with different Open XML Formats

WordProcessingML Transform XSLT

  • rated by 0 users
  • This post has 1 Reply |
  • 0 Followers
  • 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

     

  • 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
Page 1 of 1 (2 items)