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>2005-02-18 19:17:37 +0300
committerAtsushi Eno <atsushieno@gmail.com>2005-02-18 19:17:37 +0300
commitbac2f91bfb51fbdb7c5d965935fab90d07f443c0 (patch)
treea3a9fb3d9d032ffa2ba8474db9fe9d2ba3dbdc75 /mcs/class/System.XML/Mono.Xml.Xsl.Operations
parentfa769cb5075c09a771007db3d8f27a6a282a9703 (diff)
2005-02-18 Atsushi Enomoto <atsushi@ximian.com>
* XslCopy.cs, XslCopyOf.cs : copy namespace nodes in the transformation input == not limited to "local" namespace nodes. svn path=/trunk/mcs/; revision=40865
Diffstat (limited to 'mcs/class/System.XML/Mono.Xml.Xsl.Operations')
-rw-r--r--mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog5
-rw-r--r--mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslCopy.cs4
-rw-r--r--mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslCopyOf.cs4
3 files changed, 9 insertions, 4 deletions
diff --git a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog
index be1292dd831..e324ffaa399 100644
--- a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog
+++ b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-18 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XslCopy.cs, XslCopyOf.cs : copy namespace nodes in the
+ transformation input == not limited to "local" namespace nodes.
+
2005-02-17 Atsushi Enomoto <atsushi@ximian.com>
* XslNumber.cs : maybe I had better explain why I needed own Round().
diff --git a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslCopy.cs b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslCopy.cs
index 84632d71a80..735d0ab33e3 100644
--- a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslCopy.cs
+++ b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslCopy.cs
@@ -91,10 +91,10 @@ namespace Mono.Xml.Xsl.Operations {
foreach (XmlQualifiedName s in useAttributeSets)
p.ResolveAttributeSet (s).Evaluate (p);
- if (p.CurrentNode.MoveToFirstNamespace (XPathNamespaceScope.Local)) {
+ if (p.CurrentNode.MoveToFirstNamespace (XPathNamespaceScope.ExcludeXml)) {
do {
p.Out.WriteNamespaceDecl (p.CurrentNode.LocalName, p.CurrentNode.Value);
- } while (p.CurrentNode.MoveToNextNamespace (XPathNamespaceScope.Local));
+ } while (p.CurrentNode.MoveToNextNamespace (XPathNamespaceScope.ExcludeXml));
p.CurrentNode.MoveToParent ();
}
diff --git a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslCopyOf.cs b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslCopyOf.cs
index cd971a23be7..459c5492566 100644
--- a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslCopyOf.cs
+++ b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslCopyOf.cs
@@ -61,11 +61,11 @@ namespace Mono.Xml.Xsl.Operations {
p.PushElementState (nav.LocalName, nav.NamespaceURI, false);
outputter.WriteStartElement (nav.Prefix, nav.LocalName, nav.NamespaceURI);
- if (nav.MoveToFirstNamespace (XPathNamespaceScope.Local))
+ if (nav.MoveToFirstNamespace (XPathNamespaceScope.ExcludeXml))
{
do {
outputter.WriteNamespaceDecl (nav.Name, nav.Value);
- } while (nav.MoveToNextNamespace (XPathNamespaceScope.Local));
+ } while (nav.MoveToNextNamespace (XPathNamespaceScope.ExcludeXml));
nav.MoveToParent ();
}