using NUnit.Framework; using System.IO; using System.Xml; using System.Xml.XPath; using System.Xml.Xsl; namespace MonoTests.System.Xml.Xsl { [TestFixture] public class XslCompiledTransformTests { [Test] public void GlobalVariableReferencesAnotherGlobalVariable () { string xsl = @" : "; StringWriter sw = new StringWriter (); XslCompiledTransform t = new XslCompiledTransform (); t.Load (new XPathDocument (new StringReader (xsl))); t.Transform (new XPathDocument (new XmlTextReader (new StringReader (""))), null, sw); Assert.AreEqual ("foo: B", sw.ToString ()); } } }