views:

61

answers:

1

i have an xlst file that is supposed to parse an xml file and generate word document. But when i parse it in visual studio it produces another xml because its header is:

<xsl:output method="xml" omit-xml-declaration="no" version="1.0" encoding="utf-8" standalone="yes" />
<xsl:template match="/">
    <xsl:processing-instruction name="mso-application">
        <xsl:text>progid="Word.Document"</xsl:text>
    </xsl:processing-instruction>

I tried the method= "text" but it generates a plain text with no formatting. what property should i specify so that when i run the transformation it saves the result in a word document?

A: 

Another option might be to simply generate HTML (and specify the output method as HTML) and save the file with a .doc extension.

MS Word will open the file without complaining (though it still knows that it's a web page)

Catch22