Definition at line 92 of file XmlILNamespaceAnalyzer.cs.
93 {
98 if ((uint)(nodeType - 81) <= 1
u)
99 {
102 {
103 return false;
104 }
108 }
109 else
110 {
114 }
115 if ((
nd.NodeType ==
QilNodeType.AttributeCtor &&
text2.Length == 0) || (
text ==
"xml" &&
text2 ==
"http://www.w3.org/XML/1998/namespace"))
116 {
117 XmlILConstructInfo.Write(
nd).IsNamespaceInScope =
true;
118 return true;
119 }
120 if (!ValidateNames.ValidateName(
text,
string.Empty,
text2,
nodeKind, ValidateNames.Flags.CheckPrefixMapping))
121 {
122 return false;
123 }
127 {
130 {
131 if ((
object)
text2 == uri)
132 {
133 XmlILConstructInfo.Write(
nd).IsNamespaceInScope =
true;
134 }
135 break;
136 }
137 }
139 {
142 }
143 return true;
144 }
bool GetNamespaceDeclaration(int idx, [NotNullWhen(true)] out string prefix, out string uri)
virtual ? XmlNameTable NameTable
virtual void AddNamespace(string prefix, string uri)
readonly XmlNamespaceManager _nsmgr
References System.Xml.Xsl.IlGen.XmlILNamespaceAnalyzer._addInScopeNmsp, System.Xml.Xsl.IlGen.XmlILNamespaceAnalyzer._cntNmsp, System.Xml.Xsl.IlGen.XmlILNamespaceAnalyzer._nsmgr, System.Xml.XmlNameTable.Add(), System.Xml.XmlNamespaceManager.AddNamespace(), System.Xml.Dictionary, System.Xml.XmlNamespaceManager.GetNamespaceDeclaration(), System.Xml.XmlNamespaceManager.NameTable, System.prefix, System.Xml.Xsl.Qil.QilName.Prefix, System.text, System.Xml.ValidateNames.ValidateName(), and System.Xml.Xsl.IlGen.XmlILConstructInfo.Write().
Referenced by System.Xml.Xsl.IlGen.XmlILNamespaceAnalyzer.AnalyzeContent().