Word 2003 Crashes after TransformDocument

P

Pradeep Jain

Hi,

Word 2003 crashes when I try to find something (using
Edit Find)after applying an XSLT. The barebone XSLT below
can be used to reproduce the problem.

To reproduce:

1. Apply the XSLT on ANY document
(ActiveDocument.TransformDocument "E:\basic_reformat.xsl",
False)

2. Do Edit -> Find to find anything in the document.

3. Watch the crash!

I'd appreciate if anyone has any ideas.

Thanks,

Pradeep

XSLT:

=====

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:w="http://schemas.microsoft.com/office/word/2003/wor
dml"
xmlns:wx="http://schemas.microsoft.com/office/word/2003/au
xHint">


<xsl:template match="/">
<w:wordDocument>
<!-- docpr -->
<w:docPr>
<w:view w:val="normal"/>
<w:zoom w:percent="100"/>
<w:doNotEmbedSystemFonts/>
<w:proofState w:spelling="clean"
w:grammar="clean"/>
<w:attachedTemplate w:val=""/>
<w:defaultTabStop w:val="720"/>
<w:characterSpacingControl
w:val="DontCompress"/>
<w:eek:ptimizeForBrowser/>
<w:validateAgainstSchema/>
<w:saveInvalidXML/>
<w:ignoreMixedContent
w:val="off"/>
<w:alwaysShowPlaceholderText
w:val="off"/>
<w:compat>

<w:dontAllowFieldEndSelect/>

<w:useWord2002TableStyleRules/>
</w:compat>
</w:docPr>

<!-- root -->
<w:body>
</w:body>
</w:wordDocument>
</xsl:template>
</xsl:stylesheet>
 
Top