⚲
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
Overview
Roadmap
Issues
Calendar
Blog
Documents
Forums
Files
Repository
Download (852 Bytes)
Bug #4561
» head-tail-recursive-function1-streaming.xsl
Martin Honnen
, 2020-05-26 14:08
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes=
"#all"
xmlns:mf=
"http://example.com/mf"
version=
"3.0"
>
<xsl:output
indent=
"yes"
/>
<xsl:mode
on-no-match=
"shallow-copy"
streamable=
"yes"
/>
<xsl:function
name=
"mf:nest"
as=
"element()?"
streamability=
"absorbing"
>
<xsl:param
name=
"elements"
as=
"element()*"
/>
<xsl:copy
select=
"head($elements)"
>
<xsl:attribute
name=
"type"
>
data
</xsl:attribute>
<xsl:sequence
select=
"mf:nest(tail($elements))"
/>
</xsl:copy>
</xsl:function>
<xsl:template
match=
"person"
>
<xsl:copy>
<xsl:sequence
select=
"mf:nest(*)"
/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
« Previous
1
2
Next »
(1-1/2)
Loading...