⚲
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 (861 Bytes)
Bug #2478
» sample.xslt
Markus Lauer
, 2015-10-20 23:38
<xsl:stylesheet
version=
"3.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
<xsl:accumulator
name=
"state"
initial-value=
"()"
>
<xsl:accumulator-rule
match=
"*"
phase=
"end"
select=
"($value, concat(name(),')'))"
/>
<xsl:accumulator-rule
match=
"*"
phase=
"start"
select=
"($value, concat('(',name()))"
/>
</xsl:accumulator>
<xsl:template
match=
"/"
>
<root>
<start
state=
"{accumulator-before('state')}"
/>
<xsl:apply-templates
select=
"*"
/>
<end
state=
"{accumulator-after('state')}"
/>
</root>
</xsl:template>
<xsl:template
match=
"*"
>
<start
name=
"{name()}"
state=
"{accumulator-before('state')}"
/>
<xsl:apply-templates
select=
"*"
/>
<end
name=
"{name()}"
state=
"{accumulator-after('state')}"
/>
</xsl:template>
</xsl:stylesheet>
« Previous
1
2
3
4
Next »
(2-2/4)
Loading...