From 289024562e8dc54f4bfc0b32d26e465d79fbf6f4 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Mon, 23 Oct 2006 17:36:45 +0000 Subject: [PATCH] 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 --- src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs index 5d1f6a8b76..d5177f9f25 100644 --- a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs +++ b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs @@ -915,7 +915,7 @@ namespace ICSharpCode.XmlEditor static string Transform(string input, string transform) { StringReader inputString = new StringReader(input); - XPathDocument sourceDocument = new XPathDocument(inputString); + XmlTextReader sourceDocument = new XmlTextReader(inputString); StringReader transformString = new StringReader(transform); XPathDocument transformDocument = new XPathDocument(transformString);