public override void ReplaceNamespaceAlias(Compiler compiler){ if (this.namespaceUri.Length != 0) { // Do we need to check this for namespace? NamespaceInfo ResultURIInfo = compiler.FindNamespaceAlias(this.namespaceUri); if (ResultURIInfo != null) { this.namespaceUri = ResultURIInfo.nameSpace; if (ResultURIInfo.prefix != null) { this.name = ResultURIInfo.prefix; } } } }
public override void ReplaceNamespaceAlias(Compiler compiler) { if (_namespaceUri.Length != 0) { // Do we need to check this for namespace? NamespaceInfo?ResultURIInfo = compiler.FindNamespaceAlias(_namespaceUri); if (ResultURIInfo != null) { _namespaceUri = ResultURIInfo.nameSpace !; if (ResultURIInfo.prefix != null) { _name = ResultURIInfo.prefix; } } } }
public override void ReplaceNamespaceAlias(Compiler compiler){ #if DEBUG Debug.Assert(! replaceNSAliasesDone, "Second attempt to replace NS aliases!. This bad."); replaceNSAliasesDone = true; #endif if (this.nodeType == XPathNodeType.Attribute && this.namespaceUri.Length == 0) { return ; // '#default' aren't apply to attributes. } NamespaceInfo ResultURIInfo = compiler.FindNamespaceAlias(this.namespaceUri); if (ResultURIInfo != null) { this.namespaceUri = ResultURIInfo.nameSpace; if (ResultURIInfo.prefix != null) { this.prefix = ResultURIInfo.prefix; } } }
public override void ReplaceNamespaceAlias(Compiler compiler) { #if DEBUG Debug.Assert(!_replaceNSAliasesDone, "Second attempt to replace NS aliases!. This bad."); _replaceNSAliasesDone = true; #endif if (_nodeType == XPathNodeType.Attribute && _namespaceUri.Length == 0) { return; // '#default' aren't apply to attributes. } NamespaceInfo?ResultURIInfo = compiler.FindNamespaceAlias(_namespaceUri); if (ResultURIInfo != null) { _namespaceUri = ResultURIInfo.nameSpace !; if (ResultURIInfo.prefix != null) { _prefix = ResultURIInfo.prefix; } } }