Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2007-10-10 13:43:37 +0400
committerAtsushi Eno <atsushieno@gmail.com>2007-10-10 13:43:37 +0400
commit895c6c3f898ab1a7c89b18e5580a3d105ffeafe4 (patch)
tree1c803fc9c3c4d384f2507abf7d348b6b579aa938 /mcs/class/System.XML/System.Xml.Xsl
parent2912b5473b36fd70fd3ae83cce5fc28e4eff9889 (diff)
2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
* XslCompiledTransform.cs : a bit more of debugging help. Now it stores stylesheet elements when "enableDebug" is true. svn path=/trunk/mcs/; revision=87248
Diffstat (limited to 'mcs/class/System.XML/System.Xml.Xsl')
-rw-r--r--mcs/class/System.XML/System.Xml.Xsl/ChangeLog5
-rw-r--r--mcs/class/System.XML/System.Xml.Xsl/XslCompiledTransform.cs13
2 files changed, 17 insertions, 1 deletions
diff --git a/mcs/class/System.XML/System.Xml.Xsl/ChangeLog b/mcs/class/System.XML/System.Xml.Xsl/ChangeLog
index 95bbba763b6..728b3f008f4 100644
--- a/mcs/class/System.XML/System.Xml.Xsl/ChangeLog
+++ b/mcs/class/System.XML/System.Xml.Xsl/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XslCompiledTransform.cs : a bit more of debugging help. Now it
+ stores stylesheet elements when "enableDebug" is true.
+
2007-06-28 Atsushi Enomoto <atsushi@ximian.com>
* XslCompiledTransform.cs XslTransform.cs : initial attempt to
diff --git a/mcs/class/System.XML/System.Xml.Xsl/XslCompiledTransform.cs b/mcs/class/System.XML/System.Xml.Xsl/XslCompiledTransform.cs
index 54537294e51..aab2e9dabed 100644
--- a/mcs/class/System.XML/System.Xml.Xsl/XslCompiledTransform.cs
+++ b/mcs/class/System.XML/System.Xml.Xsl/XslCompiledTransform.cs
@@ -230,10 +230,21 @@ namespace System.Xml.Xsl
private void Load (XPathNavigator stylesheet,
XsltSettings settings, XmlResolver resolver)
{
- s = new Compiler (null).Compile (stylesheet, resolver, null);
+ s = new Compiler (enable_debug ? new NoOperationDebugger () : null).Compile (stylesheet, resolver, null);
}
#endregion
+
+ class NoOperationDebugger
+ {
+ protected void OnCompile (XPathNavigator input)
+ {
+ }
+
+ protected void OnExecute (XPathNodeIterator currentNodeset, XPathNavigator style, XsltContext context)
+ {
+ }
+ }
}
}
#endif