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

◆ LoadKey()

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

Definition at line 896 of file XsltLoader.cs.

897 {
901 string match = ParseStringAttribute(1, "match");
902 string text = ParseStringAttribute(2, "use");
905 List<XslNode> list = null;
906 if (V1)
907 {
908 if (text == null)
909 {
911 }
912 else
913 {
915 }
916 }
917 else
918 {
920 if (list.Count != 0)
921 {
923 }
924 if (text == null == (list.Count == 0))
925 {
927 }
928 else if (text == null)
929 {
930 ReportNYI("xsl:key[count(@use) = 0]");
931 }
932 }
933 Key item = (Key)SetInfo(AstFactory.Key(qilName, match, text, _input.XslVersion), null, attributes);
935 {
937 return;
938 }
939 List<Key> list2 = new List<Key>();
940 list2.Add(item);
941 _compiler.Keys.Add(list2);
942 }
void Add(TKey key, TValue value)
static string Xslt_KeyCntUse
Definition SR.cs:1896
Definition SR.cs:7
void ReportError(string res, params string[] args)
static NsDecl MergeNamespaces(NsDecl thisList, NsDecl parentList)
QilName ParseQNameAttribute(int attNum)
string ParseStringAttribute(int attNum, string attName)
List< XslNode > LoadInstructions()
readonly XsltInput.XsltAttribute[] _keyAttributes
Definition XsltLoader.cs:85
static XslNode SetInfo(XslNode to, List< XslNode > content, XsltInput.ContextInfo info)
List< XslNode > LoadEndTag(List< XslNode > content)
string ParseCollationAttribute(int attNum)

References System.Xml.Xsl.Xslt.XsltLoader._compiler, System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.XsltLoader._keyAttributes, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Xsl.Xslt.XsltLoader.CheckNoContent(), System.Collections.ObjectModel.KeyedCollection< TKey, TItem >.Contains(), System.Xml.Dictionary, System.Xml.Xsl.Xslt.XsltInput.GetAttributes(), System.item, System.Xml.Xsl.Xslt.AstFactory.Key(), System.Xml.Xsl.Xslt.Key, System.Xml.Xsl.Xslt.Compiler.Keys, System.list, System.Xml.Xsl.Xslt.XsltLoader.LoadEndTag(), System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(), System.match, System.Xml.Xsl.Xslt.XsltLoader.MergeNamespaces(), System.Xml.Xsl.Xslt.XsltInput.MoveToElement(), System.Xml.Xsl.Xslt.XsltInput.ContextInfo.nsList, System.Xml.Xsl.Xslt.XsltLoader.ParseCollationAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ParseQNameAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ParseStringAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.Xml.Xsl.Xslt.XsltLoader.ReportNYI(), System.Xml.Xsl.Xslt.XsltLoader.SetInfo(), System.Xml.Xsl.Xslt.XsltInput.SkipNode(), System.text, System.Xml.Xsl.Xslt.XsltLoader.V1, System.SR.Xslt_KeyCntUse, and System.Xml.Xsl.Xslt.XsltInput.XslVersion.

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