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

◆ CompileDocument()

void System.Xml.Xsl.XsltOld.ContainerAction.CompileDocument ( Compiler compiler,
bool inInclude )
inlineprotectedinherited

Definition at line 105 of file ContainerAction.cs.

106 {
107 NavigatorInput input = compiler.Input;
108 while (input.NodeType != XPathNodeType.Element)
109 {
110 if (!compiler.Advance())
111 {
112 throw XsltException.Create(System.SR.Xslt_WrongStylesheetElement);
113 }
114 }
115 if (Ref.Equal(input.NamespaceURI, input.Atoms.UriXsl))
116 {
117 if (!Ref.Equal(input.LocalName, input.Atoms.Stylesheet) && !Ref.Equal(input.LocalName, input.Atoms.Transform))
118 {
119 throw XsltException.Create(System.SR.Xslt_WrongStylesheetElement);
120 }
121 compiler.PushNamespaceScope();
124 if (!inInclude)
125 {
127 }
128 }
129 else
130 {
131 compiler.PushLiteralScope();
133 }
134 compiler.PopScope();
135 }
static string Xslt_WrongStylesheetElement
Definition SR.cs:1866
Definition SR.cs:7
void CompileStylesheetAttributes(Compiler compiler)
void CompileSingleTemplate(Compiler compiler)
void CompileTopLevelElements(Compiler compiler)

References System.Xml.Xsl.XsltOld.ContainerAction.CompileImports(), System.Xml.Xsl.XsltOld.ContainerAction.CompileSingleTemplate(), System.Xml.Xsl.XsltOld.ContainerAction.CompileStylesheetAttributes(), System.Xml.Xsl.XsltOld.ContainerAction.CompileTopLevelElements(), System.Xml.Xsl.XsltException.Create(), System.Xml.Dictionary, System.Xml.Ref.Equal(), System.input, and System.SR.Xslt_WrongStylesheetElement.

Referenced by System.Xml.Xsl.XsltOld.RootAction.Compile(), System.Xml.Xsl.XsltOld.ContainerAction.CompileImport(), and System.Xml.Xsl.XsltOld.ContainerAction.CompileInclude().