Author: atsushi
Date: 2005-03-23 09:13:39 -0500 (Wed, 23 Mar 2005)
New Revision: 42145

Modified:
   trunk/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog
   trunk/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs
Log:
2005-03-23  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * XslTransformTests.cs : added test that examines if XSLT rejects
          xsl:import incorrectly placed after other contents.



Modified: trunk/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog    2005-03-23 
14:08:32 UTC (rev 42144)
+++ trunk/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog    2005-03-23 
14:13:39 UTC (rev 42145)
@@ -1,3 +1,8 @@
+2005-03-23  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * XslTransformTests.cs : added test that examines if XSLT rejects
+         xsl:import incorrectly placed after other contents.
+
 2005-03-22  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * XslTransformTests.cs : added test 1)that examines pattern sanity and

Modified: trunk/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs 
2005-03-23 14:08:32 UTC (rev 42144)
+++ trunk/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs 
2005-03-23 14:13:39 UTC (rev 42145)
@@ -204,5 +204,17 @@
                        new XslTransform ().Load (new XPathDocument (
                                new StringReader (xsl)));
                }
+
+               [Test]
+               [ExpectedException (typeof (XsltCompileException))]
+               public void ImportIncorrectlyLocated ()
+               {
+                       string xsl = @"<xsl:transform 
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+<xsl:template match='/'></xsl:template>
+<xsl:import href='dummy.xsl' />
+</xsl:transform>";
+                       new XslTransform ().Load (new XPathDocument (
+                               new StringReader (xsl)));
+               }
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to