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

◆ CompileContent()

void System.Xml.Xsl.XsltOld.ApplyTemplatesAction.CompileContent ( Compiler compiler)
inlineprivate

Definition at line 68 of file ApplyTemplatesAction.cs.

69 {
70 NavigatorInput input = compiler.Input;
71 if (!compiler.Recurse())
72 {
73 return;
74 }
75 do
76 {
77 switch (input.NodeType)
78 {
79 case XPathNodeType.Element:
80 {
81 compiler.PushNamespaceScope();
82 string namespaceURI = input.NamespaceURI;
83 string localName = input.LocalName;
84 if (Ref.Equal(namespaceURI, input.Atoms.UriXsl))
85 {
86 if (Ref.Equal(localName, input.Atoms.Sort))
87 {
88 AddAction(compiler.CreateSortAction());
89 }
90 else
91 {
92 if (!Ref.Equal(localName, input.Atoms.WithParam))
93 {
94 throw compiler.UnexpectedKeyword();
95 }
96 WithParamAction withParamAction = compiler.CreateWithParamAction();
99 }
100 compiler.PopScope();
101 break;
102 }
103 throw compiler.UnexpectedKeyword();
104 }
105 default:
106 throw XsltException.Create(System.SR.Xslt_InvalidContents, "apply-templates");
107 case XPathNodeType.SignificantWhitespace:
108 case XPathNodeType.Whitespace:
109 case XPathNodeType.ProcessingInstruction:
110 case XPathNodeType.Comment:
111 break;
112 }
113 }
114 while (compiler.Advance());
115 compiler.ToParent();
116 }
static string Xslt_InvalidContents
Definition SR.cs:2076
Definition SR.cs:7
void CheckDuplicateParams(XmlQualifiedName name)

References System.Xml.Xsl.XsltOld.ContainerAction.AddAction(), System.Xml.Xsl.XsltOld.ContainerAction.CheckDuplicateParams(), System.Xml.Xsl.XsltException.Create(), System.Xml.Dictionary, System.Xml.Ref.Equal(), System.input, System.Xml.Xsl.XsltOld.NavigatorInput.NamespaceURI, and System.SR.Xslt_InvalidContents.

Referenced by System.Xml.Xsl.XsltOld.ApplyTemplatesAction.Compile().