Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - MSXML crash when transforming WordML document to HTML [Thread Next] Re: MSXML crash when transforming WordML document to HTMLTo: 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 > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
