wordml

XML to WordML using XSLT 1.0 - replace html tags within xml content with wordML formatting tags

I am creating a WordML document from an xml file whose elements sometimes contain html-formatted text. <w:p> <w:r> <w:t> html formatted content is in here taken from xml file! </w:t> </w:r> </w:p> This is how my templates are sort of set up. I have a recursive call-template function that does text replacement against the so...

Convert XHTML to Word ML

What is the best way to convert word HTML to word XML? I cannot buy a tool so need something preferably XSLT which is free and works suitably with basic formatting like paragraphs, lists, bold and italic. ...

How can I convert convert docx or wordml xml files to xsl-fo?

I've been looking for a method to convert docx or wordml xml to xsl-fo. I read this post: http://stackoverflow.com/questions/156683/what-is-the-best-xslt-engine-for-perl but I'm having exceptional problems getting apache-fop going. I was able to download the bins and run it locally but the formatting was a little off and it didn't ma...

Inserting a Comment in Docx file *around* a text inside a run

How do you search for a specific text inside a text run (in Docx using the OpenXML SDK 2.0) and once you find it how do you insert a comment surrounding the 'search text'. The 'search text' can be a sub string of an existing run. All example in the samples insert comments around the first paragraph or something simple like that... not wh...

Generating WordML Reports Using Templates and XPath using ASP.Net

I need to know how we can Generate WordML Reports Using Templates and XPath using ASP.Net. What are its advantages. A Simple How To Tutorial is what I require. ...

Design Advice for an HTA based Crud App...

Hi, I am developing a framework for various in-house CRUD apps. I've considered several MS technologies (WPF, Access, WinForms, ASP.NET) and have settled on ASP.NET MVC with HTA+Jquery for the client. My reason for doing so is that I need a way to write and deploy quick one-off GUI apps as well as maintaining more robust apps that are e...

Is there any way to get a WordprocessingML Clipboard content in java?

I've got a customer who managed it to paste WordprocessingML content into our application. As far as I know it was a direct copy&paste from Word 2000 to our Java application. I tried every Word and Java Version combination, but I can't reproduce this behavior - especially, since our application filters for HTML and text/plain. I'm prett...

What are the effects of an "XML Roundtrip" on Word 2003 documents?

Saving a Word 2003 document to XML and then back results in a reduced file size, and probably more that I don't know about. A diff on the WordML of the new document against the old shows differences only in the revision save ID's. So, what is getting lost in the roundtrip? If nothing is actually getting lost, then how would one explain ...

Splitting table cells in wordML programatically

how to Splitting table cells in wordML programatically ...

How to create bullet lists in WordML ?

I have the following WordML snippet which works well for numbered lists : <w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"&gt; <w:lists> <w:listDef w:listDefId="1"> <w:lvl w:ilvl="0"> <w:start w:val="1" /> <w:lvlText w:val="%1." /> <w:pPr> <w:ind w:left="720" w:...

XPS to Doc(x) Conversion via .Net?

Good morning, does anyone know of a (native) .net way to convert xps documents to docx or finally to a normal (non wordml) .doc? As in not using office automation and rather some native (3rd party) .net library that might help me there? Basically the xps > doc transformation will take place on a server with multiple concurrently runnin...

styling based on element attribute ?

I'm transforming xml into wordml using xslt. I would like to be able to format content of table cell differently if attribute of element that carries content of that cell is different. For example, I have following xslt: <xsl:template match="/ns0:RootElement/ns0:Items/ns0:Item0"> <w:tc> <w:tcPr> <w:tcW w:w="2268" w:t...

XML to WordML basics

I'm new to the world of XML. I'm not sure which way to build the XML so I provided 2 examples below. My question is: Given the XML, how do I transform either Example#1 / #2 to the WordML Result? What technologies do I need to accomplish this? Example#1: <NumberedList1> <Paragraph>Paragraph one.</Paragraph> </NumberedList1> Example...

Error while trying to insert image in to wordML

Hi, Help needed. I am getting this error {"The xml has invalid content and cannot be constructed as an element.\r\nParameter name: outerXml"} while passing constructed xml in to DocumentFormat.OpenXml.Office.Drawing.Drawing() constructor like this DocumentFormat.OpenXml.Office.Drawing.Drawing d = new DocumentFormat.OpenXml.Office...

How to transform html anchor <a> to WordML

Hi, I need to transform an anchor tag to WordML without using relationships. Is it possible? I found the w: anchor property but seems it refers only to internal document anchors and not to links or URLs. <w:hyperlink w:anchor="chapter3"> <w:r> <w:t>Go to Chapter Three</w:t> </w:r> </w:hyperlink> So it would be great if so...

How to omit xml declaration in WordML document.xml when working with bytes and MemoryStream ?

I have 2 snippets of code which work differently using (WordprocessingDocument wordDocument = WordprocessingDocument.Create(@"D:\Tests\WordML\ML_Example.docx", WordprocessingDocumentType.Document)) { // Add a main document part. MainDocumentPart mainPart = wordDocument.AddMainDocumentPart(); ...

Java lib for WordML to Word2002 conversion

Hello, For a project I am working on, I need to convert WordML stream into Word 2002 compatible .doc format (don't ask why - but quite a large group of users are still on Word 2002 with upgrade to latest version not feasible till Q4 2010). I have tried to research a lot of options and have mostly hit a dead end. My use case is that th...

Creating a Word document in Coldfusion - how to have pagenumbering?

I am creating a Word format .doc using the following code, then cfheader and cfcontent to serve. All is good but I need to be able to place dynamic information in the header (or footer), or automatic pagenumbering would be a second best option. How should I modify the code? <cfsavecontent variable="myDocument"> <html xmlns:w="urn:sche...

make wordml readonly

how i caon make a wordml read-only from . any ideas?? ...

WordML templating with XML Schema and OpenXML SDK

I'm trying to use a docx read in via the OpenXML SDK as template in a .Net web app for form letters (essentially). I have a docx with the formatting I want, marked up with XML Schema tags defined from a xsd (whatever they're called, the help is exceedingly useless on this). The only thing similar I found on Google was what seemed to be ...