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

◆ CompileContent()

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

Definition at line 37 of file AttributeSetAction.cs.

38 {
39 NavigatorInput input = compiler.Input;
40 if (!compiler.Recurse())
41 {
42 return;
43 }
44 do
45 {
46 switch (input.NodeType)
47 {
48 case XPathNodeType.Element:
49 {
50 compiler.PushNamespaceScope();
51 string namespaceURI = input.NamespaceURI;
52 string localName = input.LocalName;
53 if (Ref.Equal(namespaceURI, input.Atoms.UriXsl) && Ref.Equal(localName, input.Atoms.Attribute))
54 {
55 AddAction(compiler.CreateAttributeAction());
56 compiler.PopScope();
57 break;
58 }
59 throw compiler.UnexpectedKeyword();
60 }
61 default:
62 throw XsltException.Create(System.SR.Xslt_InvalidContents, "attribute-set");
63 case XPathNodeType.SignificantWhitespace:
64 case XPathNodeType.Whitespace:
65 case XPathNodeType.ProcessingInstruction:
66 case XPathNodeType.Comment:
67 break;
68 }
69 }
70 while (compiler.Advance());
71 compiler.ToParent();
72 }
static string Xslt_InvalidContents
Definition SR.cs:2076
Definition SR.cs:7

References System.Xml.Xsl.XsltOld.ContainerAction.AddAction(), 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.AttributeSetAction.Compile().