⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
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
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
»
SaxonJS
Overview
Roadmap
Issues
Blog
Documents
Forums
Files
Download (740 Bytes)
Bug #5430
» runTransformSyncCaptureResultsExplicitly1.js
Martin Honnen
, 2022-03-28 23:25
const
path
=
require
(
'
path
'
);
var
urlModule
=
require
(
'
url
'
);
const
baseURI
=
urlModule
.
pathToFileURL
(
path
.
join
(
path
.
resolve
(
'
.
'
),
'
foo.xml
'
));
console
.
log
(
`baseURI:
${
baseURI
.
href
}
`
);
const
SaxonJS
=
require
(
'
saxon-js
'
);
var
options
=
{
'
stylesheetLocation
'
:
'
sheet1.sef.json
'
,
'
sourceLocation
'
:
'
input1.xml
'
,
'
destination
'
:
'
serialized
'
,
'
baseOutputURI
'
:
baseURI
.
href
,
'
deliverResultDocument
'
:
function
(
uri
)
{
return
{
'
destination
'
:
'
serialized
'
,
'
save
'
:
function
(
resultUri
,
result
,
encoding
)
{
console
.
log
(
resultUri
,
result
);
}
};
}
};
SaxonJS
.
transform
(
options
);
//SaxonJS.transform(options, 'sync');
console
.
log
(
options
.
principalResult
);
« Previous
1
2
3
4
Next »
(2-2/4)
Loading...