My XML does have some styling within it. The output of the XslCompiledTransform Transform results in HTML which does not have these style tags. Is there some way to tell the XslCompiledTransform to keep them? or should the XslCompiledTransform keep them by default?
here's my xml
> <codeSnippetFull>
> <span class="kwrd">event</span>
> OnCreate {
> <span class="kwrd">if</span>
> (Count == 0)
> AddE(D); <span class="rem">// comment </span>
> }
> </codeSnippetFull>
my xslt just pulls out the whole element
<xsl:value-of select="THelpDocument/HelpBody/example/codeSnippetFull"/>
here's my C#, I've nothing other than the defaults applied:
// Load the style sheet.
XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load(args[0]);
......
xslt.Transform(xmlFileName, Path.Combine(htmlOutputPath, Path.GetFileNameWithoutExtension(xmlFileName) + ".html"));
The reason I'm not doing the styling from the xslt is because block could have and amount of styles applied, mixed in with random text. It's styling certain words in paragraphs.