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

◆ LoadAttributeSet()

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

Definition at line 1049 of file XsltLoader.cs.

1050 {
1055 {
1056 value = AstFactory.AttributeSet(qilName);
1059 {
1061 }
1062 }
1064 if (_input.MoveToXsltAttribute(1, "use-attribute-sets"))
1065 {
1067 }
1070 {
1071 do
1072 {
1073 switch (_input.NodeType)
1074 {
1075 case XmlNodeType.Element:
1077 {
1079 break;
1080 }
1082 _input.SkipNode();
1083 break;
1084 default:
1086 break;
1087 case XmlNodeType.Whitespace:
1088 case XmlNodeType.SignificantWhitespace:
1089 break;
1090 }
1091 }
1092 while (_input.MoveToNextSibling());
1093 }
1094 value.AddContent(SetInfo(AstFactory.List(), LoadEndTag(list), attributes));
1095 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
static string Xslt_TextNodesNotAllowed
Definition SR.cs:1876
static string Xslt_UnexpectedElement
Definition SR.cs:1872
Definition SR.cs:7
Dictionary< QilName, AttributeSet > AttributeSets
Definition Compiler.cs:99
List< ProtoTemplate > AllTemplates
Definition Compiler.cs:93
Dictionary< QilName, AttributeSet > AttributeSets
Definition Stylesheet.cs:14
bool IsXsltKeyword(string kwd)
Definition XsltInput.cs:717
bool MoveToXsltAttribute(int attNum, string attName)
Definition XsltInput.cs:681
void ReportError(string res, params string[] args)
readonly XsltInput.XsltAttribute[] _attributeSetAttributes
static void AddInstruction(List< XslNode > content, XslNode instruction)
static NsDecl MergeNamespaces(NsDecl thisList, NsDecl parentList)
QilName ParseQNameAttribute(int attNum)
void AddUseAttributeSets(List< XslNode > list)
static XslNode SetInfo(XslNode to, List< XslNode > content, XsltInput.ContextInfo info)
List< XslNode > LoadEndTag(List< XslNode > content)

References System.Xml.Xsl.Xslt.XsltLoader._atoms, System.Xml.Xsl.Xslt.XsltLoader._attributeSetAttributes, System.Xml.Xsl.Xslt.XsltLoader._compiler, System.Xml.Xsl.Xslt.XsltLoader._curStylesheet, System.Xml.Xsl.Xslt.XsltLoader._input, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Xsl.Xslt.XsltLoader.AddInstruction(), System.Xml.Xsl.Xslt.XsltLoader.AddUseAttributeSets(), System.Xml.Xsl.Xslt.Compiler.AllTemplates, System.Xml.Xsl.Xslt.KeywordsTable.Attribute, System.Xml.Xsl.Xslt.AstFactory.AttributeSet(), System.Xml.Xsl.Xslt.Compiler.AttributeSets, System.Xml.Xsl.Xslt.Stylesheet.AttributeSets, System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.Xml.Dictionary, System.Xml.Xsl.Xslt.XsltInput.ElementName, System.Xml.Xsl.Xslt.XsltInput.GetAttributes(), System.Xml.Xsl.Xslt.XsltInput.IsXsltKeyword(), System.list, System.Xml.Xsl.Xslt.AstFactory.List(), System.Xml.Xsl.Xslt.XsltLoader.LoadEndTag(), System.Xml.Xsl.Xslt.XsltLoader.MergeNamespaces(), System.Xml.Xsl.Xslt.XsltInput.MoveToFirstChild(), System.Xml.Xsl.Xslt.XsltInput.MoveToNextSibling(), System.Xml.Xsl.Xslt.XsltInput.MoveToXsltAttribute(), System.Xml.Xsl.Xslt.XsltInput.NodeType, System.Xml.Xsl.Xslt.XsltInput.ContextInfo.nsList, System.Xml.Xsl.Xslt.XsltLoader.ParseQNameAttribute(), System.Xml.Xsl.Xslt.XsltInput.QualifiedName, System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.Xml.Xsl.Xslt.XsltLoader.SetInfo(), System.Xml.Xsl.Xslt.XsltInput.SkipNode(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), System.value, System.Xml.Xsl.Xslt.XsltLoader.XslAttribute(), System.SR.Xslt_TextNodesNotAllowed, and System.SR.Xslt_UnexpectedElement.

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