locked
New line being lost in RTF output when using XSLT RRS feed

  • Question

  • Hi,
      I have an XML string which contains the following element

    <Notes>a\r\nb\r\nc\r\nd\r\ne\r\n</Notes>

    When i transform it to an RTF format using xslt with the following header

    <

    and the following statement in xslt

    <

    XslCompiledTransform

     

    xslTransform = new XslCompiledTransform();
    xslTransform.Load(xSLTFileName);

     

    XsltArgumentList xslArg = new XsltArgumentList();
    xslArg.AddParam("PresentTime", "", PresentTime);
    xslTransform.Transform(new XPathDocument(new StringReader(sXML)), xslArg, result); return result.ToString();

    Thanks
     

     

     

    xsl:value-of select ="Notes"/>

    i am loosing the newline effect which should display each character of "abcde" in seperate line and shows up as "abcde".

    Is the header the culprit? I am using the following code to transform in a C#.Net function
    xsl:text>{\rtf1{\fonttbl{\f0\fnil\fcharset0 Arial;}}\viewkind4\uc1\pard\lang1033\fs18</xsl:text>
    Wednesday, May 13, 2009 9:00 PM