Browse Source

Fixed SD2-1113 - Running an xsl transform containing an xsl:strip-space element throws an XslTransform exception. The input xml is now loaded into an XmlReader so the white space can be stripped during the transform.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1932 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 20 years ago
parent
commit
289024562e
  1. 2
      src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs

2
src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs

@ -915,7 +915,7 @@ namespace ICSharpCode.XmlEditor
static string Transform(string input, string transform) static string Transform(string input, string transform)
{ {
StringReader inputString = new StringReader(input); StringReader inputString = new StringReader(input);
XPathDocument sourceDocument = new XPathDocument(inputString); XmlTextReader sourceDocument = new XmlTextReader(inputString);
StringReader transformString = new StringReader(transform); StringReader transformString = new StringReader(transform);
XPathDocument transformDocument = new XPathDocument(transformString); XPathDocument transformDocument = new XPathDocument(transformString);

Loading…
Cancel
Save