diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2006-04-07 13:16:27 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2006-04-07 13:16:27 +0400 |
commit | f7ec99dca716f29fdc9508b8a56a122fa19b74de (patch) | |
tree | 6774e81f8fd55b6b7902f35c758b00ce699b2fc3 /mcs/class/System.XML/Test/System.Xml.Xsl | |
parent | c1da29c50fa0c544565e59573230fd5ce5307971 (diff) |
2006-04-07 Atsushi Enomoto <atsushi@ximian.com>
* XslTransformProcessor.cs : push current node context after iterating
template target node. Added another NodesetMoveNext() which takes
explicit XPathNodeIterator to iterate and filter whitespaces out.
* XslForEach.cs : push current node context after iterating "selected"
node-set.
* XslTransformTests.cs : added CurrentInSelect().
* current-in-select.xml current-in-select.xsl current-in-select.ref :
new files for XslTransformTests.CurrentInSelect().
svn path=/trunk/mcs/; revision=59172
Diffstat (limited to 'mcs/class/System.XML/Test/System.Xml.Xsl')
-rw-r--r-- | mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog b/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog index 2fc469ed31d..87184ee8e67 100644 --- a/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog +++ b/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog @@ -1,5 +1,9 @@ 2006-04-07 Atsushi Enomoto <atsushi@ximian.com> + * XslTransformTests.cs : added CurrentInSelect(). + +2006-04-07 Atsushi Enomoto <atsushi@ximian.com> + * XslTransformTests.cs : added StripSpace(). 2006-01-13 Atsushi Enomoto <atsushi@ximian.com> diff --git a/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs b/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs index d1a55fa7b15..714aba7e504 100644 --- a/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs +++ b/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs @@ -1898,5 +1898,21 @@ Services t.Transform (d, null, sw); Assert.AreEqual (result, sw.ToString ()); } + + [Test] + public void CurrentInSelect () + { + XslTransform t = new XslTransform (); + t.Load ("Test/XmlFiles/xsl/current-in-select.xsl"); + XPathDocument d = new XPathDocument ( + "Test/XmlFiles/xsl/current-in-select.xml", XmlSpace.Preserve); + StringWriter sw = new StringWriter (); + t.Transform (d, null, sw); + using (StreamReader sr = File.OpenText ( + "Test/XmlFiles/xsl/current-in-select.ref")) { + string s = sr.ReadToEnd (); + Assert.AreEqual (s, sw.ToString ()); + } + } } } |