⚲
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
»
SaxonC
Overview
Issues
Calendar
Blog
Forums
Files
Download (532 Bytes)
Support #6097
» main2.py
Martin Honnen
, 2023-06-26 15:44
from
saxonche
import
*
with
PySaxonProcessor
(
license
=
False
)
as
saxon_proc
:
xslt30_processor
=
saxon_proc
.
new_xslt30_processor
()
element_names
=
[
'foo'
,
'foobar'
]
xslt_param
=
PyXdmValue
()
for
name
in
element_names
:
xslt_param
.
add_xdm_item
(
saxon_proc
.
make_string_value
(
name
))
xslt30_processor
.
set_parameter
(
'cdata-tag-names'
,
xslt_param
)
xslt30_processor
.
transform_to_file
(
source_file
=
'sample2.xml'
,
stylesheet_file
=
'serialize-wrap-in-cdata1.xsl'
,
output_file
=
'result-sample2.xml'
)
« Previous
1
2
3
Next »
(1-1/3)
Loading...