Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: MSXML crash when transforming WordML document to HTML

From: "Han" <hp4444@------.---.----->
To: NULL
Date: 5/1/2004 12:41:00 AM
I'm not sure, but at least worth trying xml 5.0. As far as I know, recent
Office applications use xml 5.0.

"Andy Fish" <ajfish@b...> wrote in message
news:I2ukc.1200$qp5.12182741@n......
> Hi,
>
> I am trying to use the word2html.xsl stylesheet included as part of
> Microsoft's Word 2003 XML viewer to transform a WordML (AKA
> WordProcessingML) file into HTML
>
> It works with the .Net XSLT processor but when I try to use MSXML4 I get
an
> error message
>
> The instruction at "0x69b1fdff referenced memory at 0x00000004". The
memory
> could not be "read".
>
> when I click OK to terminate, the system seems to go into a loop with VB
> taking 100%cpu
>
> it seems to work OK for trivial documents (a few lines of plain text) and
> fails every time for large complex ones. For some small documents it works
> first time but fails if I do it again.
>
> here is the complete code:
>
> Private Sub Command1_Click()
>     Dim xmldoc As New DOMDocument40
>     Dim xsldoc As New DOMDocument40
>     xmldoc.async = False
>     xsldoc.async = False
>     xsldoc.Load "word2html.xsl"
>     xmldoc.Load "word.xml"
>     Call xmldoc.transformNode(xsldoc)
> End Sub
>
> (I have stripped out the error checking but suffice to say the documents
> load OK). Here is a sample document:
>
> 1 Heading
> Hello there Hello there Hello there Hello there Hello there Hello there
> Hello there Hello there
> 2 Heading
>
> note that the two headings are in "heading 1" style with automatic
> numbering.
>
> This example works the first 2 times and then crashes the third time I
click
> the button. If one of the headings is not formatted with Heading style,
the
> conversion works every time.
>
> I'm sure this is some kind of timing or memory allocation issue but it's
> fair to say I'm completely stumped on this one.
>
> many thanks for any ideas
>
> Andy
>
>




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent