⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Lernen Sie alles über Aufgaben
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Search
:
Projects
All Projects
Help
Tour this page
Frequent Planio Questions
Learning Resources
Lernen Sie alles über Aufgaben
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
Overview
Roadmap
Issues
Calendar
Blog
Documents
Forums
Files
Repository
Download (909 Bytes)
RE: StaticContext.Processor in SaxonCS ExtensionFunctionC...
» Example1FunctionCall.cs
Martin Honnen
, 2022-08-16 09:07
using
Saxon.Api
;
namespace
SaxonCSExtensionStaticContextTestLib
{
public
class
Example1FunctionCall
:
ExtensionFunctionCall
{
Processor
processor
;
public
override
XdmValue
Call
(
XdmValue
[]
arguments
,
DynamicContext
context
)
{
string
inputString
=
arguments
[
0
][
0
].
StringValue
;
return
processor
.
NewDocumentBuilder
().
Build
(
new
StringReader
(
inputString
));
}
public
override
void
CopyLocalData
(
ExtensionFunctionCall
destination
)
{
base
.
CopyLocalData
(
destination
);
var
castedDestination
=
(
Example1FunctionCall
)
destination
;
castedDestination
.
processor
=
processor
;
}
public
override
void
SupplyStaticContext
(
StaticContext
context
)
{
base
.
SupplyStaticContext
(
context
);
processor
=
context
.
Processor
;
}
}
}
« Previous
1
2
Next »
(2-2/2)
Loading...