8 types derived from XslNode
System.Private.Xml (8)
System\Xml\Xsl\Xslt\XslAst.cs (8)
137
internal abstract class ProtoTemplate :
XslNode
221
internal sealed class VarPar :
XslNode
229
internal sealed class Sort :
XslNode
255
internal sealed class Key :
XslNode
301
internal sealed class Number :
XslNode
329
internal sealed class NodeCtor :
XslNode
342
internal sealed class Text :
XslNode
353
internal sealed class XslNodeEx :
XslNode
16 instantiations of XslNode
System.Private.Xml (16)
System\Xml\Xsl\Xslt\XslAst.cs (16)
374
return new
XslNode
(nodeType, name, arg, xslVer);
379
return new
XslNode
(XslNodeType.ApplyImports, mode, sheet, xslVer);
410
return new
XslNode
(XslNodeType.Choose);
415
return new
XslNode
(XslNodeType.Comment);
420
return new
XslNode
(XslNodeType.Copy);
425
return new
XslNode
(XslNodeType.CopyOf, null, select, xslVer);
435
return new
XslNode
(XslNodeType.Error, null, message, XslVersion.Current);
445
return new
XslNode
(XslNodeType.If, null, test, xslVer);
455
return new
XslNode
(XslNodeType.List);
460
return new
XslNode
(XslNodeType.LiteralAttribute, name, value, xslVer);
465
return new
XslNode
(XslNodeType.LiteralElement, name, null, XslVersion.Current);
470
return new
XslNode
(XslNodeType.Message, null, term, XslVersion.Current);
475
return new
XslNode
(XslNodeType.Nop);
487
return new
XslNode
(XslNodeType.Otherwise);
492
return new
XslNode
(XslNodeType.PI, null, name, xslVer);
517
return new
XslNode
(XslNodeType.UseAttributeSet, name, null, XslVersion.Current);
237 references to XslNode
System.Private.Xml (237)
System\Xml\Xsl\Xslt\Compiler.cs (1)
43
public
XslNode
? StartApplyTemplates;
System\Xml\Xsl\Xslt\InvokeGenerator.cs (3)
40
public QilNode GenerateInvoke(QilFunction func, IList<
XslNode
> actualArgs)
101
private static QilNode? FindActualArg(QilParameter formalArg, IList<
XslNode
> actualArgs)
105
foreach (
XslNode
actualArg in actualArgs)
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
491
public QilNode BuildMatcher(QilIterator it, IList<
XslNode
> actualArgs, QilNode otherwise)
System\Xml\Xsl\Xslt\QilGenerator.cs (41)
75
private
XslNode
? _lastScope;
287
private QilNode CompileRootExpression(
XslNode
applyTmpls)
298
private QilList? EnterScope(
XslNode
node)
514
XslNode
node = tmpl.Content[i];
683
private QilNode CompileInstructions(IList<
XslNode
> instructions)
688
private QilNode CompileInstructions(IList<
XslNode
> instructions, int from)
693
private QilNode CompileInstructions(IList<
XslNode
> instructions, QilList content)
698
private QilNode CompileInstructions(IList<
XslNode
> instructions, int from, QilList content)
703
XslNode
node = instructions[i];
779
private QilNode CompileList(
XslNode
node)
799
private QilNode CompileLiteralElement(
XslNode
node)
913
private QilNode CompileLiteralAttribute(
XslNode
node)
1102
private QilNode CompilePI(
XslNode
node)
1113
private QilNode CompileComment(
XslNode
node)
1118
private QilNode CompileError(
XslNode
node)
1140
IList<
XslNode
> content = node.Content;
1164
IList<
XslNode
> content = node.Content;
1213
private QilNode CompileApplyImports(
XslNode
node)
1226
IList<
XslNode
> content = node.Content;
1272
private QilNode CompileUseAttributeSet(
XslNode
node)
1296
private QilNode CompileCopy(
XslNode
copy)
1335
private QilNode CompileCopyOf(
XslNode
node)
1384
private QilNode CompileValueOf(
XslNode
valueOf)
1389
private QilNode CompileValueOfDoe(
XslNode
valueOf)
1394
private QilNode CompileWhen(
XslNode
whenNode, QilNode otherwise)
1403
private QilNode CompileIf(
XslNode
ifNode)
1408
private QilNode CompileChoose(
XslNode
node)
1410
IList<
XslNode
> cases = node.Content;
1416
XslNode
when = cases[i];
1439
private QilNode CompileMessage(
XslNode
node)
1458
private QilNode CompileVariable(
XslNode
node)
1468
private QilNode CompileVarParValue(
XslNode
node)
1474
IList<
XslNode
> content = node.Content;
1519
private QilList? CompileSorts(IList<
XslNode
> content, ref LoopFocus parentLoop)
2513
private QilNode GenerateApply(StylesheetLevel sheet,
XslNode
node)
2527
private static void SetArg(IList<
XslNode
> args, int pos, QilName name, QilNode value)
2541
private IList<
XslNode
>? AddRemoveImplicitArgs(IList<
XslNode
>? args, XslFlags flags)
2552
args = new List<
XslNode
>(3);
2566
private static bool FillupInvokeArgs(QilList formalArgs, IList<
XslNode
> actualArgs, QilList invokeArgs)
2615
private QilNode InvokeApplyFunction(StylesheetLevel sheet, QilName mode, IList<
XslNode
>? actualArgs)
System\Xml\Xsl\Xslt\Stylesheet.cs (3)
30
public List<
XslNode
>? GlobalVarPars = new List<
XslNode
>();
88
foreach (
XslNode
prevVar in GlobalVarPars!)
System\Xml\Xsl\Xslt\XslAst.cs (28)
84
private List<
XslNode
>? _content;
105
private static readonly IList<
XslNode
> s_emptyList = new List<
XslNode
>().AsReadOnly();
107
public IList<
XslNode
> Content
112
public void SetContent(List<
XslNode
>? content)
117
public void AddContent(
XslNode
node)
120
_content ??= new List<
XslNode
>();
124
public void InsertContent(IEnumerable<
XslNode
> collection)
128
_content = new List<
XslNode
>(collection);
160
public new void AddContent(
XslNode
node)
372
public static
XslNode
XslNode(XslNodeType nodeType, QilName? name, string? arg, XslVersion xslVer)
377
public static
XslNode
ApplyImports(QilName mode, Stylesheet? sheet, XslVersion xslVer)
408
public static
XslNode
Choose()
413
public static
XslNode
Comment()
418
public static
XslNode
Copy()
423
public static
XslNode
CopyOf(string? select, XslVersion xslVer)
433
public static
XslNode
Error(string message)
443
public static
XslNode
If(string? test, XslVersion xslVer)
453
public static
XslNode
List()
458
public static
XslNode
LiteralAttribute(QilName name, string value, XslVersion xslVer)
463
public static
XslNode
LiteralElement(QilName name)
468
public static
XslNode
Message(bool term)
473
public static
XslNode
Nop()
485
public static
XslNode
Otherwise()
490
public static
XslNode
PI(string name, XslVersion xslVer)
505
public static
XslNode
Text(string data)
510
public static
XslNode
Text(string data, SerializationHints hints)
515
public static
XslNode
UseAttributeSet(QilName name)
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (32)
55
where V :
XslNode
184
foreach (
XslNode
instr in tmpl.Content)
300
protected override XslFlags Visit(
XslNode
node)
318
protected override XslFlags VisitChildren(
XslNode
node)
321
foreach (
var
child in node.Content)
345
protected override XslFlags VisitApplyImports(
XslNode
node)
354
protected override XslFlags VisitApplyTemplates(
XslNode
node)
359
foreach (
XslNode
instr in node.Content)
401
protected override XslFlags VisitCallTemplate(
XslNode
node)
427
foreach (
XslNode
instr in node.Content)
441
foreach (
XslNode
instr in target.Content)
457
foreach (
XslNode
withPar in node.Content)
494
protected override XslFlags VisitComment(
XslNode
node)
499
protected override XslFlags VisitCopy(
XslNode
node)
506
protected override XslFlags VisitCopyOf(
XslNode
node)
523
protected override XslFlags VisitError(
XslNode
node)
528
protected override XslFlags VisitForEach(
XslNode
node)
532
foreach (
XslNode
child in node.Content)
548
protected override XslFlags VisitIf(
XslNode
node)
563
protected override XslFlags VisitLiteralAttribute(
XslNode
node)
572
protected override XslFlags VisitLiteralElement(
XslNode
node)
577
protected override XslFlags VisitMessage(
XslNode
node)
601
protected override XslFlags VisitPI(
XslNode
node)
628
protected override XslFlags VisitUseAttributeSet(
XslNode
node)
647
protected override XslFlags VisitValueOf(
XslNode
node)
652
protected override XslFlags VisitValueOfDoe(
XslNode
node)
1334
private int CheckNodeCost(
XslNode
node)
1355
var
child = content[t];
1405
private void Refactor(
XslNode
parent, int split)
1408
var content = (List<
XslNode
>)parent.Content;
1410
var
node = content[split];
1428
newtemplate.SetContent(new List<
XslNode
>(content.Count - split + 8));
System\Xml\Xsl\Xslt\XsltLoader.cs (83)
331
XslNode
lre = LoadLiteralResultElement(/*asStylesheet:*/true);
336
List<
XslNode
> content = new List<
XslNode
>();
799
private void CheckUseAttrubuteSetInList(IList<
XslNode
> list)
801
foreach (
XslNode
xslNode in list)
861
List<
XslNode
>? content;
1083
List<
XslNode
> content = new List<
XslNode
>();
1343
private List<
XslNode
> LoadInstructions()
1345
return LoadInstructions(new List<
XslNode
>(), InstructionFlags.None);
1348
private List<
XslNode
> LoadInstructions(InstructionFlags flags)
1350
return LoadInstructions(new List<
XslNode
>(), flags);
1353
private List<
XslNode
> LoadInstructions(List<
XslNode
> content)
1360
private List<
XslNode
> LoadInstructions(List<
XslNode
> content, InstructionFlags flags)
1374
XslNode
? result;
1466
private List<
XslNode
> LoadWithParams(InstructionFlags flags)
1469
List<
XslNode
> content = new List<
XslNode
>();
1481
XslNode
withParam = XslVarPar();
1513
private
XslNode
? XslApplyImports()
1523
List<
XslNode
>? content = LoadWithParams(InstructionFlags.None);
1557
private
XslNode
XslApplyTemplates()
1564
List<
XslNode
> content = LoadWithParams(InstructionFlags.AllowSort);
1576
private
XslNode
XslCallTemplate()
1581
List<
XslNode
> content = LoadWithParams(InstructionFlags.None);
1595
private
XslNode
XslCopy()
1604
List<
XslNode
> content = new List<
XslNode
>();
1622
private
XslNode
XslCopyOf()
1638
private
XslNode
? XslFallback()
1648
private
XslNode
XslIf()
1656
private
XslNode
XslChoose()
1660
List<
XslNode
> content = new List<
XslNode
>();
1672
XslNode
? node = null;
1726
private
XslNode
XslOtherwise()
1735
private
XslNode
XslForEach()
1742
List<
XslNode
> content = LoadInstructions(InstructionFlags.AllowSort);
1756
private
XslNode
XslMessage()
1763
List<
XslNode
> content = LoadInstructions();
1791
private
XslNode
XslNumber()
1843
private
XslNode
XslValueOf()
1856
List<
XslNode
>? content;
1955
List<
XslNode
> content = LoadContent(select != null);
1968
private
XslNode
XslComment()
1977
private List<
XslNode
> LoadContent(bool hasSelect)
1980
List<
XslNode
> content = LoadInstructions();
1996
private
XslNode
XslProcessingInstruction()
2010
private
XslNode
XslText()
2018
List<
XslNode
> content = new List<
XslNode
>();
2056
private
XslNode
XslElement()
2070
List<
XslNode
> content = new List<
XslNode
>();
2090
private
XslNode
XslAttribute()
2120
private
XslNode
XslSort(int sortNumber)
2137
List<
XslNode
>? content;
2478
private
XslNode
LoadLiteralResultElement(bool asStylesheet)
2493
List<
XslNode
> content = new List<
XslNode
>();
2507
XslNode
att = F.LiteralAttribute(F.QName(_input.LocalName, _input.NamespaceUri, _input.Prefix), _input.Value, _input.XslVersion);
2521
private void CheckWithParam(List<
XslNode
> content,
XslNode
withParam)
2525
foreach (
XslNode
node in content)
2535
private static void AddInstruction(List<
XslNode
> content,
XslNode
? instruction)
2544
private List<
XslNode
> LoadEndTag(List<
XslNode
> content)
2554
private
XslNode
? LoadUnknownXsltInstruction(string parentName)
2566
List<
XslNode
> fallbacks = LoadFallbacks(_input.LocalName);
2571
private List<
XslNode
> LoadFallbacks(string instrName)
2575
List<
XslNode
> fallbacksArray = new List<
XslNode
>();
2888
private void AddUseAttributeSets(List<
XslNode
> list)
3071
private static
XslNode
SetLineInfo(
XslNode
node, ISourceLineInfo? lineInfo)
3078
private static void SetContent(
XslNode
node, List<
XslNode
>? content)
3088
internal static
XslNode
SetInfo(
XslNode
to, List<
XslNode
>? content, ContextInfo info)
System\Xml\Xsl\Xslt\XslVisitor.cs (45)
10
protected virtual T Visit(
XslNode
node) =>
13
XslNodeType.ApplyImports => VisitApplyImports((
XslNode
)node),
14
XslNodeType.ApplyTemplates => VisitApplyTemplates((
XslNode
)node),
17
XslNodeType.CallTemplate => VisitCallTemplate((
XslNode
)node),
18
XslNodeType.Choose => VisitChoose((
XslNode
)node),
19
XslNodeType.Comment => VisitComment((
XslNode
)node),
20
XslNodeType.Copy => VisitCopy((
XslNode
)node),
21
XslNodeType.CopyOf => VisitCopyOf((
XslNode
)node),
23
XslNodeType.Error => VisitError((
XslNode
)node),
24
XslNodeType.ForEach => VisitForEach((
XslNode
)node),
25
XslNodeType.If => VisitIf((
XslNode
)node),
27
XslNodeType.List => VisitList((
XslNode
)node),
28
XslNodeType.LiteralAttribute => VisitLiteralAttribute((
XslNode
)node),
29
XslNodeType.LiteralElement => VisitLiteralElement((
XslNode
)node),
30
XslNodeType.Message => VisitMessage((
XslNode
)node),
31
XslNodeType.Nop => VisitNop((
XslNode
)node),
33
XslNodeType.Otherwise => VisitOtherwise((
XslNode
)node),
35
XslNodeType.PI => VisitPI((
XslNode
)node),
39
XslNodeType.UseAttributeSet => VisitUseAttributeSet((
XslNode
)node),
40
XslNodeType.ValueOf => VisitValueOf((
XslNode
)node),
41
XslNodeType.ValueOfDoe => VisitValueOfDoe((
XslNode
)node),
44
_ => VisitUnknown((
XslNode
)node),
47
protected virtual T VisitApplyImports(
XslNode
node) { return VisitChildren(node); }
48
protected virtual T VisitApplyTemplates(
XslNode
node) { return VisitChildren(node); }
51
protected virtual T VisitCallTemplate(
XslNode
node) { return VisitChildren(node); }
52
protected virtual T VisitChoose(
XslNode
node) { return VisitChildren(node); }
53
protected virtual T VisitComment(
XslNode
node) { return VisitChildren(node); }
54
protected virtual T VisitCopy(
XslNode
node) { return VisitChildren(node); }
55
protected virtual T VisitCopyOf(
XslNode
node) { return VisitChildren(node); }
57
protected virtual T VisitError(
XslNode
node) { return VisitChildren(node); }
58
protected virtual T VisitForEach(
XslNode
node) { return VisitChildren(node); }
59
protected virtual T VisitIf(
XslNode
node) { return VisitChildren(node); }
61
protected virtual T VisitList(
XslNode
node) { return VisitChildren(node); }
62
protected virtual T VisitLiteralAttribute(
XslNode
node) { return VisitChildren(node); }
63
protected virtual T VisitLiteralElement(
XslNode
node) { return VisitChildren(node); }
64
protected virtual T VisitMessage(
XslNode
node) { return VisitChildren(node); }
65
protected virtual T VisitNop(
XslNode
node) { return VisitChildren(node); }
67
protected virtual T VisitOtherwise(
XslNode
node) { return VisitChildren(node); }
69
protected virtual T VisitPI(
XslNode
node) { return VisitChildren(node); }
73
protected virtual T VisitUseAttributeSet(
XslNode
node) { return VisitChildren(node); }
74
protected virtual T VisitValueOf(
XslNode
node) { return VisitChildren(node); }
75
protected virtual T VisitValueOfDoe(
XslNode
node) { return VisitChildren(node); }
78
protected virtual T VisitUnknown(
XslNode
node) { return VisitChildren(node); }
80
protected virtual T VisitChildren(
XslNode
node)
82
foreach (
XslNode
child in node.Content)