Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LoadNamespaceAlias()

void System.Xml.Xsl.Xslt.XsltLoader.LoadNamespaceAlias ( NsDecl stylesheetNsList)
inlineprivate

Definition at line 1011 of file XsltLoader.cs.

1012 {
1015 string text = null;
1016 string text2 = null;
1017 string text3 = null;
1018 if (_input.MoveToXsltAttribute(0, "stylesheet-prefix"))
1019 {
1020 if (_input.Value.Length == 0)
1021 {
1022 ReportError(System.SR.Xslt_EmptyNsAlias, "stylesheet-prefix");
1023 }
1024 else
1025 {
1026 text = _input.LookupXmlNamespace((_input.Value == "#default") ? string.Empty : _input.Value);
1027 }
1028 }
1029 if (_input.MoveToXsltAttribute(1, "result-prefix"))
1030 {
1031 if (_input.Value.Length == 0)
1032 {
1033 ReportError(System.SR.Xslt_EmptyNsAlias, "result-prefix");
1034 }
1035 else
1036 {
1037 text2 = ((_input.Value == "#default") ? string.Empty : _input.Value);
1039 }
1040 }
1043 {
1046 }
1047 }
static string Xslt_EmptyNsAlias
Definition SR.cs:1912
static string Xslt_DupNsAlias
Definition SR.cs:1908
Definition SR.cs:7
bool SetNsAlias(string ssheetNsUri, string resultNsUri, string resultPrefix, int importPrecedence)
Definition Compiler.cs:170
string LookupXmlNamespace(string prefix)
bool MoveToXsltAttribute(int attNum, string attName)
Definition XsltInput.cs:681
void ReportError(string res, params string[] args)
void ReportWarning(string res, params string[] args)
static NsDecl MergeNamespaces(NsDecl thisList, NsDecl parentList)
readonly XsltInput.XsltAttribute[] _namespaceAliasAttributes

References System.Xml.Xsl.Xslt.XsltLoader._compiler, System.Xml.Xsl.Xslt.XsltLoader._curStylesheet, System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.XsltLoader._namespaceAliasAttributes, System.Xml.Xsl.Xslt.XsltLoader.CheckNoContent(), System.Xml.Dictionary, System.Xml.Xsl.Xslt.XsltInput.GetAttributes(), System.Xml.Xsl.Xslt.Stylesheet.ImportPrecedence, System.Xml.Xsl.Xslt.XsltInput.LookupXmlNamespace(), System.Xml.Xsl.Xslt.XsltLoader.MergeNamespaces(), System.Xml.Xsl.Xslt.XsltInput.MoveToElement(), System.Xml.Xsl.Xslt.XsltInput.MoveToXsltAttribute(), System.Xml.Xsl.Xslt.XsltInput.ContextInfo.nsList, System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.Xml.Xsl.Xslt.XsltLoader.ReportWarning(), System.Xml.Xsl.Xslt.Compiler.SetNsAlias(), System.text, System.Xml.Xsl.Xslt.XsltInput.Value, System.SR.Xslt_DupNsAlias, and System.SR.Xslt_EmptyNsAlias.

Referenced by System.Xml.Xsl.Xslt.XsltLoader.LoadRealStylesheet().