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

◆ LoadWithParams()

List< XslNode > System.Xml.Xsl.Xslt.XsltLoader.LoadWithParams ( InstructionFlags flags)
inlineprivate

Definition at line 1270 of file XsltLoader.cs.

1271 {
1275 {
1276 int num = 0;
1277 do
1278 {
1279 switch (_input.NodeType)
1280 {
1281 case XmlNodeType.Element:
1283 {
1284 XslNode xslNode = XslVarPar();
1287 }
1288 else if (flags == InstructionFlags.AllowSort && _input.IsXsltKeyword(_atoms.Sort))
1289 {
1290 AddInstruction(list, XslSort(num++));
1291 }
1292 else if (flags == InstructionFlags.AllowFallback && _input.IsXsltKeyword(_atoms.Fallback))
1293 {
1294 XslFallback();
1295 }
1296 else
1297 {
1299 _input.SkipNode();
1300 }
1301 break;
1302 default:
1304 break;
1305 case XmlNodeType.Whitespace:
1306 case XmlNodeType.SignificantWhitespace:
1307 break;
1308 }
1309 }
1310 while (_input.MoveToNextSibling());
1311 }
1312 return list;
1313 }
static string Xslt_TextNodesNotAllowed
Definition SR.cs:1876
static string Xslt_UnexpectedElement
Definition SR.cs:1872
Definition SR.cs:7
bool IsXsltKeyword(string kwd)
Definition XsltInput.cs:717
void ReportError(string res, params string[] args)
static void AddInstruction(List< XslNode > content, XslNode instruction)
void CheckWithParam(List< XslNode > content, XslNode withParam)
XslNode XslSort(int sortNumber)

References System.Xml.Xsl.Xslt.XsltLoader._atoms, System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.XsltLoader.AddInstruction(), System.Xml.Xsl.Xslt.XsltLoader.CheckWithParam(), System.Xml.Dictionary, System.Xml.Xsl.Xslt.XsltInput.ElementName, System.Xml.Xsl.Xslt.KeywordsTable.Fallback, System.Xml.Xsl.Xslt.XsltInput.IsXsltKeyword(), System.list, System.Xml.Xsl.Xslt.XsltInput.MoveToFirstChild(), System.Xml.Xsl.Xslt.XsltInput.MoveToNextSibling(), System.Xml.Xsl.Xslt.XsltInput.NodeType, System.Xml.Xsl.Xslt.XsltInput.QualifiedName, System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.Xml.Xsl.Xslt.XsltInput.SkipNode(), System.Xml.Xsl.Xslt.KeywordsTable.Sort, System.Xml.Xsl.Xslt.KeywordsTable.WithParam, System.Xml.Xsl.Xslt.XsltLoader.XslFallback(), System.Xml.Xsl.Xslt.XsltLoader.XslSort(), System.SR.Xslt_TextNodesNotAllowed, System.SR.Xslt_UnexpectedElement, and System.Xml.Xsl.Xslt.XsltLoader.XslVarPar().

Referenced by System.Xml.Xsl.Xslt.XsltLoader.XslApplyImports(), System.Xml.Xsl.Xslt.XsltLoader.XslApplyTemplates(), and System.Xml.Xsl.Xslt.XsltLoader.XslCallTemplate().