+2007-08-08 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XslCallTemplate.cs : significant whitespace should be allowed
+ as its content. Fixed bug #82357.
+
2007-06-28 Atsushi Enomoto <atsushi@ximian.com>
* XslText.cs XslMessage.cs XslVariable.cs XslNotSupportedOperation.cs
switch (c.Input.NodeType) {
case XPathNodeType.Comment:
case XPathNodeType.ProcessingInstruction:
+ case XPathNodeType.SignificantWhitespace:
case XPathNodeType.Whitespace:
continue;
case XPathNodeType.Element:
+2007-08-08 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XslTransformTests.cs : added test for bug #82357.
+
2006-04-07 Atsushi Enomoto <atsushi@ximian.com>
* XslTransformTests.cs : added CurrentInSelect().
Assert.AreEqual (s, sw.ToString ());
}
}
+
+ [Test]
+ public void CallTemplateSignificantWhitespace ()
+ {
+ // bug #82357
+ string xsl = @"<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
+ <xsl:template name='foo' xml:space='preserve'>
+ <xsl:call-template name='bar'>
+ <xsl:with-param name='hoge' select='hoge' />
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template name='bar'>
+ </xsl:template>
+</xsl:stylesheet>";
+ XslTransform t = new XslTransform ();
+ t.Load (new XmlTextReader (new StringReader (xsl)));
+ t.Transform (new XPathDocument (new StringReader ("<dummy/>")), null, new XmlTextWriter (TextWriter.Null));
+ }
}
}