Definition at line 17 of file ChooseAction.cs.
18 {
20 bool flag = false;
22 do
23 {
24 switch (
input.NodeType)
25 {
27 {
30 string localName =
input.LocalName;
32 {
34 if (
Ref.Equal(localName,
input.Atoms.When))
35 {
37 {
39 }
41 flag = true;
42 }
43 else
44 {
45 if (!
Ref.Equal(localName,
input.Atoms.Otherwise))
46 {
48 }
50 {
52 }
53 ifAction =
compiler.CreateIfAction(IfAction.ConditionType.ConditionOtherwise);
55 }
58 break;
59 }
61 }
62 default:
68 break;
69 }
70 }
72 if (!flag)
73 {
75 }
76 }
static string Xslt_InvalidContents
static string Xslt_DupOtherwise
static string Xslt_NoWhen
static string Xslt_WhenAfterOtherwise
void AddAction(Action action)
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, System.SR.Xslt_DupOtherwise, System.SR.Xslt_InvalidContents, System.SR.Xslt_NoWhen, and System.SR.Xslt_WhenAfterOtherwise.
Referenced by System.Xml.Xsl.XsltOld.ChooseAction.Compile().