1 write to f
System.Data.SqlXml (1)
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
95
f
= new XsltQilFactory(new QilFactory(), debug);
547 references to f
System.Data.SqlXml (547)
System\Xml\Xsl\Xslt\QilGenerator.cs (399)
100
refReplacer = new ReferenceReplacer(
f
.BaseFactory);
101
invkGen = new InvokeGenerator(
f
, debug);
102
matcherBuilder = new MatcherBuilder(
f
, refReplacer, invkGen);
103
singlFocus = new SingletonFocus(
f
);
105
curLoop = new LoopFocus(
f
);
106
strConcat = new QilStrConcatenator(
f
);
107
varHelper = new VariableHelper(
f
);
112
nameCurrent =
f
.QName("current" , XmlReservedNs.NsXslDebug);
113
namePosition =
f
.QName("position" , XmlReservedNs.NsXslDebug);
114
nameLast =
f
.QName("last" , XmlReservedNs.NsXslDebug);
115
nameNamespaces =
f
.QName("namespaces", XmlReservedNs.NsXslDebug);
116
nameInit =
f
.QName("init" , XmlReservedNs.NsXslDebug);
131
this.functions =
f
.FunctionList();
132
this.extPars =
f
.GlobalParameterList();
133
this.gloVars =
f
.GlobalVariableList();
134
this.nsVars =
f
.GlobalVariableList();
192
QilExpression qil =
f
.QilExpression(root,
f
.BaseFactory); {
210
return
f
.Loop(i =
f
.Let(
f
.InvokeOnCurrentNodeChanged(curLoop.GetCurrent())),
f
.Sequence());
226
QilNode init =
f
.Int32(0);
232
init =
f
.Add(init,
f
.InvokeRegisterDecimalFormat(format));
236
init =
f
.Add(init,
f
.InvokeRegisterDecimalFormat(DecimalFormatDecl.Default));
242
init =
f
.Add(init,
f
.InvokeCheckScriptNamespace(scriptNs));
246
QilFunction initFunction =
f
.Function(
f
.FormalParameterList(), init, /*sideEffects:*/
f
.True());
250
QilNode initBinding =
f
.Invoke(initFunction,
f
.ActualParameterList());
253
initBinding =
f
.TypeAssert(initBinding, T.ItemS);
255
QilIterator initVar =
f
.Let(initBinding);
268
return
f
.DocumentCtor(result);
287
QilList nsDecls =
f
.BaseFactory.Sequence();
289
nsDecls.Add(
f
.NamespaceDecl(
f
.String(rec.ncName),
f
.String(rec.nsUri)));
402
QilIterator newVar =
f
.Let(nsList);
403
newVar.DebugName =
f
.QName("ns" + this.nsVars.Count, XmlReservedNs.NsXslDebug).ToString();
418
QilList args =
f
.FormalParameterList();
471
QilList paramFormal =
f
.FormalParameterList();
472
QilList paramActual =
f
.ActualParameterList();
474
QilParameter formal =
f
.Parameter(args[j].XmlType); {
485
QilFunction paramFunc =
f
.Function(paramFormal,
486
f
.Boolean((xslPar.DefValueFlags & XslFlags.SideEffects) != 0),
491
param.DefaultValue =
f
.Invoke(paramFunc, paramActual);
515
tmpl.Function =
f
.Function(args,
516
f
.Boolean((tmpl.Flags & XslFlags.SideEffects) != 0),
549
QilParameter arg =
f
.Parameter(xt);
587
return
f
.BaseFactory.Sequence();
659
QilIterator var =
f
.Let(result);
663
result =
f
.Loop(var, CompileInstructions(instructions, i + 1));
680
return
f
.Nop(
f
.Sequence());
688
content.Add(
f
.NamespaceDecl(
f
.String(prefix),
f
.String(nsUri)));
746
return
f
.ElementCtor(qname, content);
765
qname =
f
.QName(local, nsUri, prefix);
768
qname =
f
.StrParseQName(qilName, qilNs);
780
return
f
.ElementCtor(qname, content);
793
return
f
.AttributeCtor(qname, CompileTextAvt(node.Select));
819
qname =
f
.QName(local, nsUri, prefix);
823
qname =
f
.StrParseQName(qilName, qilNs);
832
return
f
.AttributeCtor(qname, CompileInstructions(node.Content));
861
return
f
.Error(lastScope.SourceLine, Res.Xslt_SingleRightBraceInAvt, source);
869
return i > start ?
f
.String(source.Substring(start, i - start)) : null;
872
return
f
.String(unescapedText.ToString());
877
QilList result =
f
.BaseFactory.Sequence();
887
result.Add(
f
.ConvertToString(exp));
903
return
f
.String(avt);
905
return
f
.StrConcat(CompileAvt(avt));
911
return
f
.TextCtor(
f
.String(avt));
917
result.Add(
f
.TextCtor(node));
921
return
f
.TextCtor(avtParts);
927
return
f
.TextCtor(
f
.String(node.Select));
929
return
f
.RawTextCtor(
f
.String(node.Select));
938
return
f
.PICtor(qilName, CompileInstructions(node.Content));
942
return
f
.CommentCtor(CompileInstructions(node.Content));
946
return
f
.Error(
f
.String(node.Select));
952
return
f
.Sequence(
955
SetLineInfo(
f
.Nop(
f
.Sequence()), after)
967
QilIterator it =
f
.For(CompileNodeSetExpression(node.Select));
991
QilIterator select =
f
.Let(CompileNodeSetExpression(node.Select));
1003
QilIterator let =
f
.Let(val);
1004
let.DebugName =
f
.QName("with-param " + withParam.Name.QualifiedName, XmlReservedNs.NsXslDebug).ToString();
1013
QilIterator it =
f
.For(select);
1049
QilIterator let =
f
.Let(val);
1050
let.DebugName =
f
.QName("with-param " + withParam.Name.QualifiedName, XmlReservedNs.NsXslDebug).ToString();
1065
result =
f
.Sequence();
1075
return
f
.Nop(result);
1093
return
f
.Sequence();
1101
f
.CheckNodeNotRtf(node);
1109
content.Add(
f
.XPathNamespace(node));
1114
return
f
.ElementCtor(
f
.NameOf(node), result);
1125
return
f
.XsltCopy(node, CompileInstructions(copy.Content));
1143
return
f
.XsltCopyOf(selectExpr);
1146
return
f
.Loop(it =
f
.For(selectExpr),
f
.XsltCopyOf(it));
1153
return
f
.TextCtor(
f
.ConvertToString(selectExpr));
1159
return
f
.Loop(
1160
it =
f
.For(selectExpr),
1161
f
.Conditional(
f
.IsType(it, T.Node),
1162
f
.XsltCopyOf(
f
.TypeAssert(it, T.Node)),
1163
f
.TextCtor(
f
.XsltConvert(it, T.StringX))
1170
return
f
.TextCtor(
f
.ConvertToString(CompileXPathExpression(/*select:*/valueOf.Select)));
1174
return
f
.RawTextCtor(
f
.ConvertToString(CompileXPathExpression(/*select:*/valueOf.Select)));
1178
return
f
.Conditional(
1179
f
.ConvertToBoolean(CompileXPathExpression(/*test:*/whenNode.Select)),
1209
return
f
.Sequence();
1211
return IsDebug ?
f
.Sequence(result) : result;
1216
QilNode content =
f
.RtfCtor(CompileInstructions(node.Content),
f
.String(baseUri));
1219
content =
f
.InvokeOuterXml(content);
1223
return
f
.Warning(content);
1228
return
f
.Loop(i =
f
.Let(content),
f
.Sequence(
f
.Warning(i),
f
.Error(i)));
1257
varValue =
f
.RtfCtor(CompileInstructions(content),
f
.String(baseUri));
1260
varValue =
f
.String(string.Empty);
1264
varValue =
f
.TypeAssert(varValue, T.ItemS);
1283
QilList keyList =
f
.BaseFactory.SortKeyList();
1317
result =
f
.Loop(i =
f
.Let(result),
1318
f
.Conditional(
f
.Eq(
f
.InvokeLangToLcid(i, fwdCompat),
f
.Int32(XsltLibrary.InvariantCultureLcid)),
1319
f
.String(string.Empty),
1333
return
f
.Double(XsltLibrary.InvariantCultureLcid);
1335
return
f
.Double(XsltLibrary.LangToLcidInternal((string)(QilLiteral)lang, fwdCompat, (IErrorHelper)this));
1337
return
f
.XsltConvert(
f
.InvokeLangToLcid(lang, fwdCompat), T.DoubleX);
1349
select =
f
.ConvertToNumber(select);
1373
result =
f
.Loop(dt =
f
.Let(result),
1374
f
.Conditional(
f
.Eq(dt,
f
.String(DtNumber)),
f
.False(),
1375
f
.Conditional(
f
.Eq(dt,
f
.String(DtText)),
f
.True(),
1376
fwdCompat ?
f
.True() :
1377
f
.Loop(qname =
f
.Let(ResolveQNameDynamic(/*ignoreDefaultNs:*/true, dt)),
1378
f
.Error(lastScope.SourceLine,
1384
QilIterator text =
f
.Let(result);
1388
select2 = select.DeepClone(
f
.BaseFactory);
1389
select =
f
.Conditional(text,
f
.ConvertToString(select),
f
.String(string.Empty) );
1390
select2 =
f
.Conditional(text,
f
.Double(0),
f
.ConvertToNumber(select2));
1396
select =
f
.ConvertToString(select);
1419
result =
f
.String("1");
1424
result =
f
.String("0");
1428
result =
f
.Loop(i =
f
.Let(result),
1429
f
.Conditional(
f
.Eq(i,
f
.String(value1)),
f
.String("1"),
1430
fwdCompat ?
f
.String("0") :
1431
f
.Conditional(
f
.Eq(i,
f
.String(value0)),
f
.String("0"),
1432
f
.Error(lastScope.SourceLine,
1480
select =
f
.ConvertToString(select);
1505
QilSortKey result =
f
.SortKey(select, collation);
1510
result =
f
.SortKey(select2, collation.DeepClone(
f
.BaseFactory));
1527
list =
f
.BaseFactory.Sequence();
1531
QilNode result =
f
.False();
1535
result =
f
.Or(
1558
return
f
.InvokeIsSameNodeSort(testNode, current);
1563
case XmlNodeKindFlags.Document : return
f
.IsType(testNode, T.Document);
1564
case XmlNodeKindFlags.Element : result =
f
.IsType(testNode, T.Element); break;
1565
case XmlNodeKindFlags.Attribute : result =
f
.IsType(testNode, T.Attribute); break;
1566
case XmlNodeKindFlags.Text : return
f
.IsType(testNode, T.Text);
1567
case XmlNodeKindFlags.Comment : return
f
.IsType(testNode, T.Comment);
1568
case XmlNodeKindFlags.PI : return
f
.And(
f
.IsType(testNode, T.PI) ,
f
.Eq(
f
.LocalNameOf(testNode),
f
.LocalNameOf(current)));
1569
case XmlNodeKindFlags.Namespace : return
f
.And(
f
.IsType(testNode, T.Namespace),
f
.Eq(
f
.LocalNameOf(testNode),
f
.LocalNameOf(current)));
1572
return
f
.False();
1576
return
f
.And(result,
f
.And(
1577
f
.Eq(
f
.LocalNameOf(testNode) ,
f
.LocalNameOf(current)),
1578
f
.Eq(
f
.NamespaceUriOf(testNode),
f
.NamespaceUriOf(GetCurrentNode()))
1607
countPattern2 = (countPattern != null) ? countPattern.DeepClone(
f
.BaseFactory) : null;
1608
countMatches =
f
.Filter(i =
f
.For(
f
.AncestorOrSelf(GetCurrentNode())), MatchCountPattern(countPattern, i));
1610
A =
f
.DocOrderDistinct(countMatches);
1612
A =
f
.Filter(i =
f
.For(countMatches),
f
.Eq(
f
.PositionOf(i),
f
.Int32(1)));
1618
fromMatches =
f
.Filter(i =
f
.For(
f
.AncestorOrSelf(GetCurrentNode())), MatchPattern(fromPattern, i));
1619
F =
f
.Filter(i =
f
.For(fromMatches),
f
.Eq(
f
.PositionOf(i),
f
.Int32(1)));
1620
AF =
f
.Loop(i =
f
.For(F),
f
.Filter(j =
f
.For(A),
f
.Before(i, j)));
1623
return
f
.Loop(j =
f
.For(AF),
1624
f
.Add(
f
.Int32(1),
f
.Length(
f
.Filter(i =
f
.For(
f
.PrecedingSibling(j)), MatchCountPattern(countPattern2, i))))
1654
range =
f
.NodeRange(
f
.Root(GetCurrentNode()), GetCurrentNode());
1655
AF =
f
.Filter(i =
f
.For(range), MatchCountPattern(countPattern, i));
1657
fromMatches =
f
.Filter(i =
f
.For(
f
.Preceding(GetCurrentNode())), MatchPattern(fromPattern, i));
1658
F =
f
.Filter(i =
f
.For(fromMatches),
f
.Eq(
f
.PositionOf(i),
f
.Int32(1)));
1659
AF =
f
.Loop(i =
f
.For(F),
1660
f
.Filter(j =
f
.For(
f
.Filter(k =
f
.For(
f
.NodeRange(i, GetCurrentNode())), MatchCountPattern(countPattern, k))),
1661
f
.Not(
f
.Is(i, j))
1666
return
f
.Loop(k =
f
.Let(
f
.Length(AF)),
1667
f
.Conditional(
f
.Eq(k,
f
.Int32(0)),
f
.Sequence(),
1690
return
f
.String(Default);
1695
QilIterator i =
f
.Let(result);
1696
return
f
.Loop(i,
1697
f
.Conditional(
1698
f
.Or(
f
.Eq(i,
f
.String(Alphabetic)),
f
.Eq(i,
f
.String(Traditional))),
1700
fwdCompat ?
f
.String(Default) :
1701
f
.Error(lastScope.SourceLine, Res.Xslt_BistateAttribute, "letter-value", Alphabetic, Traditional)
1705
return
f
.String(Default);
1713
result =
f
.String(string.Empty);
1721
result =
f
.String(string.Empty);
1724
QilIterator i =
f
.Let(result);
1725
result =
f
.Loop(i,
1726
f
.Conditional(
f
.Eq(
f
.StrLength(i),
f
.Int32(1)), i,
1727
fwdCompat ?
f
.String(string.Empty) :
1728
f
.Error(lastScope.SourceLine, Res.Xslt_CharAttribute, "grouping-separator")
1738
return
f
.Double(0);
1746
return
f
.Double(dblGroupingSize);
1749
return
f
.Double(0);
1752
QilIterator i =
f
.Let(
f
.ConvertToNumber(result));
1753
return
f
.Loop(i,
1754
f
.Conditional(
f
.And(
f
.Lt(
f
.Double(0), i),
f
.Lt(i,
f
.Double(int.MaxValue))),
1756
f
.Double(0)
1768
value =
f
.ConvertToNumber(CompileXPathExpression(num.Value));
1784
return
f
.TextCtor(
f
.InvokeNumberFormat(
1828
QilParameter context =
f
.Parameter(T.NodeNotRtf);
1830
QilIterator values =
f
.For(
f
.OptimizeBarrier(CompileKeyMatch(key.Match)));
1832
QilIterator keys =
f
.For(CompileKeyUse(key));
1833
keys =
f
.For(
f
.OptimizeBarrier(
f
.Loop(keys,
f
.ConvertToString(keys))));
1835
QilParameter value =
f
.Parameter(T.StringX);
1837
QilFunction func =
f
.Function(
f
.FormalParameterList(context, value),
1838
f
.Filter(values,
1839
f
.Not(
f
.IsEmpty(
f
.Filter(keys,
f
.Eq(keys, value))))
1841
f
.False()
1870
it =
f
.Let(
f
.Unknown(xt));
1872
it =
f
.Parameter(null, varPar.Name, xt);
1918
return
f
.TypeAssert(
f
.Sequence(), T.ItemS);
1922
return
f
.TypeAssert(
f
.Sequence(), T.NodeNotRtfS);
1943
result =
f
.Error(
f
.String(e.Message));
1947
result =
f
.Nop(result);
1953
QilNode result =
f
.TryEnsureNodeSet(CompileXPathExpression(expr));
1960
result =
f
.Error(
f
.String(e.Message));
1980
result =
f
.Error(
f
.String(e.Message));
1984
result =
f
.Nop(result);
2002
result =
f
.Loop(
f
.For(ptrnBuilder.FixupNode),
2003
f
.Error(
f
.String(e.Message))
2023
result =
f
.Error(
f
.String(e.Message));
2046
result =
f
.Error(
f
.String(e.Message));
2059
result =
f
.Error(
f
.String(XslLoadException.CreateMessage(key.SourceLine, Res.Xslt_MissingAttribute, "use")));
2068
result =
f
.Error(
f
.String(e.Message));
2072
result =
f
.Nop(result);
2078
f
.CheckString(qilName);
2079
QilList nsDecls =
f
.BaseFactory.Sequence();
2081
nsDecls.Add(
f
.NamespaceDecl(
f
.String(string.Empty),
f
.String(string.Empty)));
2090
nsDecls.Add(
f
.NamespaceDecl(
f
.String(recPrefix),
f
.String(recNsUri)));
2093
return
f
.StrParseQName(qilName, nsDecls);
2105
return
f
.Sequence();
2195
QilList invokeArgs =
f
.ActualParameterList();
2216
QilList formalArgs =
f
.FormalParameterList();
2226
QilParameter formalArg =
f
.Parameter(i == 0 ? T.NodeNotRtf : withParam.Value.XmlType);
2235
applyFunction =
f
.Function(formalArgs,
2236
f
.Boolean((flags & XslFlags.SideEffects) != 0),
2251
QilIterator iChild =
f
.For(
f
.Content(current));
2252
QilNode filter =
f
.Filter(iChild,
f
.IsType(iChild, T.Content));
2256
curLoop.SetFocus(
f
.For(filter));
2268
body =
f
.Sequence(InvokeOnCurrentNodeChanged(), body);
2275
QilTernary builtinTemplates =
f
.BaseFactory.Conditional(
f
.IsType(current, elementOrDocumentType),
2277
f
.Conditional(
f
.IsType(current, textOrAttributeType),
2278
f
.TextCtor(
f
.XPathNodeValue(current)),
2279
f
.Sequence()
2287
return
f
.Invoke(applyFunction, invokeArgs);
2349
QilIterator var =
f
.Let(value);
2351
return
f
.Loop(var, content);
2360
nsVar =
f
.TypeAssert(nsVar, T.NamespaceS);
2377
return (QilName)name.ShallowClone(
f
.BaseFactory);
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (148)
57
XPathQilFactory IXPathEnvironment.Factory { get { return
f
; } }
86
var =
f
.TypeAssert(var, XmlQueryTypeFactory.NodeSDod);
98
func.CastArguments(args, name,
f
);
135
return
f
.InvokeMsStringCompare(
136
/*x: */
f
.ConvertToString(args[0]),
137
/*y: */
f
.ConvertToString(args[1]),
138
/*lang: */2 < args.Count ?
f
.ConvertToString(args[2]) :
f
.String(string.Empty),
139
/*options:*/3 < args.Count ?
f
.ConvertToString(args[3]) :
f
.String(string.Empty)
143
return
f
.InvokeMsUtc(/*datetime:*/
f
.ConvertToString(args[0]));
147
return
f
.InvokeMsFormatDateTime(
148
/*datetime:*/
f
.ConvertToString(args[0]),
149
/*format: */1 < args.Count ?
f
.ConvertToString(args[1]) :
f
.String(string.Empty),
150
/*lang: */2 < args.Count ?
f
.ConvertToString(args[2]) :
f
.String(string.Empty),
151
/*isDate: */
f
.Boolean(name == "format-date")
155
return
f
.InvokeMsLocalName(
f
.ConvertToString(args[0]));
158
return
f
.InvokeMsNamespaceUri(
f
.ConvertToString(args[0]), env.GetCurrent());
161
return
f
.InvokeMsNumber(args[0]);
179
args[i] =
f
.SafeDocOrderDistinct(args[i]);
184
return GenerateScriptCall(
f
.QName(name, ns, prefix), scrFunc, args);
189
return
f
.Error(lastScope.SourceLine, Res.Xslt_ScriptsProhibited);
193
return
f
.XsltInvokeLateBound(
f
.QName(name, ns, prefix), args);
203
case XmlTypeCode.Boolean: args[i] =
f
.ConvertToBoolean(args[i]); break;
204
case XmlTypeCode.Double: args[i] =
f
.ConvertToNumber(args[i]); break;
205
case XmlTypeCode.String: args[i] =
f
.ConvertToString(args[i]); break;
206
case XmlTypeCode.Node: args[i] = xmlTypeFormalArg.IsSingleton ?
f
.ConvertToNode(args[i]) :
f
.ConvertToNodeSet(args[i]); break;
212
return
f
.XsltInvokeEarlyBound(name, scrFunc.Method, scrFunc.XmlReturnType, args);
323
result = CompileSingleKey(name,
f
.ConvertToString(keys), env);
325
result =
f
.Loop(i =
f
.For(keys), CompileSingleKey(name,
f
.ConvertToString(i), env));
329
result = CompileSingleKey(name,
f
.ConvertToString(keys), env);
332
result =
f
.Loop(n =
f
.Let(name),
f
.Loop(k =
f
.Let(keys),
333
f
.Conditional(
f
.Not(
f
.IsType(k, T.AnyAtomicType)),
334
f
.Loop(i =
f
.For(
f
.TypeAssert(k, T.NodeS)), CompileSingleKey(n,
f
.ConvertToString(i), env)),
335
CompileSingleKey(n,
f
.XsltConvert(k, T.StringX), env)
339
return
f
.DocOrderDistinct(result);
352
QilName qname =
f
.QName(local, nsUri, prefix);
362
QilIterator i =
f
.Let(name);
364
result =
f
.Invoke(generalKey,
f
.ActualParameterList(i, resolvedName, key, env.GetCurrent()));
365
result =
f
.Loop(i, result);
373
return
f
.Invoke(defList[0].Function,
f
.ActualParameterList(env.GetCurrent(), key));
376
QilIterator i =
f
.Let(key);
377
QilNode result =
f
.Sequence();
379
result.Add(
f
.Invoke(keyDef.Function,
f
.ActualParameterList(env.GetCurrent(), i)));
381
return
f
.Loop(i, result);
386
QilList result =
f
.BaseFactory.Sequence();
390
keyRef =
f
.Invoke(keyDef.Function,
f
.ActualParameterList(context, key));
397
QilIterator name =
f
.Parameter(T.StringX);
398
QilIterator resolvedName =
f
.Parameter(T.QNameX);
399
QilIterator key =
f
.Parameter(T.StringX);
400
QilIterator context =
f
.Parameter(T.NodeNotRtf);
402
QilNode fdef =
f
.Error(Res.Xslt_UndefinedKey, name);
404
fdef =
f
.Conditional(
f
.Eq(resolvedName, compiler.Keys[idx][0].Name.DeepClone(
f
.BaseFactory)),
410
QilFunction result =
f
.Function(
f
.FormalParameterList(name, resolvedName, key, context), fdef,
f
.False());
422
return
f
.Error(lastScope.SourceLine, Res.Xslt_DocumentFuncProhibited);
425
result =
f
.DocOrderDistinct(
f
.Loop(i =
f
.For(uris),
426
CompileSingleDocument(
f
.ConvertToString(i), baseNode ?? i)
429
result = CompileSingleDocument(
f
.ConvertToString(uris), baseNode);
431
u =
f
.Let(uris);
432
j = (baseNode != null) ?
f
.Let(baseNode) : null;
433
result =
f
.Conditional(
f
.Not(
f
.IsType(u, T.AnyAtomicType)),
434
f
.DocOrderDistinct(
f
.Loop(i =
f
.For(
f
.TypeAssert(u, T.NodeS)),
435
CompileSingleDocument(
f
.ConvertToString(i), j ?? i)
437
CompileSingleDocument(
f
.XsltConvert(u, T.StringX), j)
439
result = (baseNode != null) ?
f
.Loop(j, result) : result;
440
result =
f
.Loop(u, result);
446
f
.CheckString(uri);
450
baseUri =
f
.String(lastScope.SourceLine.Uri);
452
f
.CheckNodeSet(baseNode);
454
baseUri =
f
.InvokeBaseUri(baseNode);
460
baseUri =
f
.StrConcat(
f
.Loop(i =
f
.FirstNode(baseNode),
f
.InvokeBaseUri(i)));
464
f
.CheckString(baseUri);
465
return
f
.DataSource(uri, baseUri);
469
f
.CheckDouble(value);
470
f
.CheckString(formatPicture);
476
formatName =
f
.String(string.Empty);
478
f
.CheckString(formatName);
502
QilIterator fmtIdx =
f
.Let(
f
.InvokeRegisterDecimalFormatter(formatPicture, format));
503
fmtIdx.DebugName =
f
.QName("formatter" + this.formatterCnt++, XmlReservedNs.NsXslDebug).ToString();
505
return
f
.InvokeFormatNumberStatic(value, fmtIdx);
509
QilNode name =
f
.QName(resolvedName.Name, resolvedName.Namespace);
510
return
f
.InvokeFormatNumberDynamic(value, formatPicture, name, formatName);
513
QilIterator i =
f
.Let(formatName);
515
return
f
.Loop(i,
f
.InvokeFormatNumberDynamic(value, formatPicture, name, i));
520
f
.CheckString(n);
521
return
f
.Error(lastScope.SourceLine, Res.Xslt_UnsupportedXsltFunction, "unparsed-entity-uri");
525
f
.CheckNodeSet(n);
527
return
f
.XsltGenerateId(n);
530
return
f
.StrConcat(
f
.Loop(i =
f
.FirstNode(n),
f
.XsltGenerateId(i)));
545
f
.CheckString(name);
551
return
f
.String(propValue.Value);
554
return
f
.Double((double)propValue.ValueAsDouble);
557
name =
f
.QName(qname.Name, qname.Namespace);
561
return
f
.InvokeSystemProperty(name);
565
f
.CheckString(name);
569
return
f
.Boolean(IsElementAvailable(qname));
571
name =
f
.QName(qname.Name, qname.Namespace);
575
return
f
.InvokeElementAvailable(name);
579
f
.CheckString(name);
585
return
f
.Boolean(QilGenerator.IsFunctionAvailable(qname.Name, qname.Namespace));
589
name =
f
.QName(qname.Name, qname.Namespace);
593
return
f
.InvokeFunctionAvailable(name);
601
return
f
.XsltConvert(n, T.NodeSDod);
611
case XmlTypeCode.Boolean : return
f
.String("boolean");
612
case XmlTypeCode.Double : return
f
.String("number");
613
case XmlTypeCode.String : return
f
.String("string");
616
return
f
.String("node-set");
621
return
f
.InvokeEXslObjectType(n);