diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2005-02-17 12:11:16 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2005-02-17 12:11:16 +0300 |
commit | 6763f3f4ad56a610e0bf0e308e8777a7936d5a91 (patch) | |
tree | b25c67b8cb64ce38c19730ea1d9807682d1b2386 | |
parent | 61f819d80dd7b214fd048e2211cdcadafa755210 (diff) |
2005-02-17 Atsushi Enomoto <atsushi@ximian.com>
* XslAttribute.cs : It does not have to probe prefix at run time.
svn path=/trunk/mcs/; revision=40797
-rw-r--r-- | mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslAttribute.cs | 15 |
2 files changed, 5 insertions, 14 deletions
diff --git a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog index 304b67dd644..e0ce0cb30a4 100644 --- a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog +++ b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog @@ -1,5 +1,9 @@ 2005-02-17 Atsushi Enomoto <atsushi@ximian.com> + * XslAttribute.cs : It does not have to probe prefix at run time. + +2005-02-17 Atsushi Enomoto <atsushi@ximian.com> + * XslLiteralElement.cs, XslCopy.cs : Now that exclude-element-prefixes and extension- element-prefixes are handled in GetNamespacesToCopy(), we could diff --git a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslAttribute.cs b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslAttribute.cs index 471e36c1ae2..57cb6270846 100644 --- a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslAttribute.cs +++ b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslAttribute.cs @@ -46,13 +46,12 @@ namespace Mono.Xml.Xsl.Operations { XmlNamespaceManager nsm; XslOperation value; - XPathNavigator nav; public XslAttribute (Compiler c) : base (c) {} protected override void Compile (Compiler c) { - nav = c.Input.Clone (); + XPathNavigator nav = c.Input.Clone (); name = c.ParseAvtAttribute ("name"); if (name == null) @@ -129,18 +128,6 @@ namespace Mono.Xml.Xsl.Operations { nm = XslNameUtil.LocalNameOf (nm); } - if (nmsp != String.Empty && prefix == String.Empty) { - if (nav.MoveToFirstNamespace (XPathNamespaceScope.ExcludeXml)) { - do { - if (nav.Value == nmsp) { - prefix = nav.Name; - break; - } - } while (nav.MoveToNextNamespace (XPathNamespaceScope.ExcludeXml)); - nav.MoveToParent (); - } - } - if (prefix == "xmlns") prefix = String.Empty; // Should not be allowed. |