Posted By: wacko | Jul 20th, 2005 @ 8:20 PM
page 1 of 1
Comments: 2 | Views: 4223
okay I have a quick question about XSLT, I wrote up something to convert XML word docs to XML structured FrameMaker documents Smiley and in my XSLT I use the following:

<xsl:template match="w:wordDocument">
    <xsl:text disable-output-escaping="yes">&lt;article&gt;</xsl:text>
            <articleinfo>
        </articleinfo>
    <xsl:text disable-output-escaping="yes">&lt;/article&gt;</xsl:text>
</xsl:template>

and when I use the XSLTransform class to apply the XSLT file to the XML file I load in it does not deal with the xsl:text at all and I will get a parse error because it will turn w:wordDocument into &lt;article&gt; but if i save the document out of word and apply the transformation there with the same XSLT file it will make w:wordDocument turn into <article> like its suppose to. Does anyone know if this may be a bug in VS ? I am using VS 2003.
cravikiran
cravikiran
Ravi Chodavarapu
Short answer:

It'll ignore disable-output-escaping attribute when writing to XmlWriter... Use TextWriter or Stream instead.

More:

[MSDN Article]

page 1 of 1
Comments: 2 | Views: 4223