FindNamespaceAlias() private method

private FindNamespaceAlias ( String StylesheetURI ) : NamespaceInfo
StylesheetURI String
return NamespaceInfo
Ejemplo n.º 1
0
 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;
             }
         }
     }
 }
Ejemplo n.º 2
0
 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;
             }
         }
     }
 }
Ejemplo n.º 3
0
        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; 
                }
            }
        }
Ejemplo n.º 4
0
        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;
                }
            }
        }