⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Agiles Projektmanagement einrichten
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
Agiles Projektmanagement einrichten
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
Overview
Roadmap
Issues
Calendar
Blog
Documents
Forums
Files
Repository
Download (732 Bytes)
Bug #2561
ยป nested_iterate_bug.xsl
David Rudel
, 2015-12-28 13:59
<?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=
"xs"
version=
"3.0"
>
<xsl:template
match=
"/"
>
<xsl:iterate
select=
"//row"
>
<xsl:variable
name=
"days.left"
as=
"xs:integer"
>
<xsl:iterate
select=
"following-sibling::row"
>
<xsl:param
name=
"days"
select=
"0"
/>
<xsl:on-completion>
<xsl:sequence
select=
"$days"
/>
</xsl:on-completion>
<xsl:next-iteration>
<xsl:with-param
name=
"days"
select=
"$days + 1"
/>
</xsl:next-iteration>
</xsl:iterate>
</xsl:variable>
<day
date=
"{@Date}"
days.left=
"{$days.left}"
/>
</xsl:iterate>
</xsl:template>
</xsl:stylesheet>
(1-1/1)
Loading...