⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Get started with Agile
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
Get started with Agile
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
Overview
Roadmap
Issues
Calendar
Blog
Documents
Forums
Files
Repository
Download (1.99 KB)
Feature #6507
» sample-copy-of-column.xsl
A Galtman
, 2024-08-19 23:24
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
version=
"3.0"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
>
<!--
Adapted from xsl:perform-sort Coverage Test Case
-->
<xsl:template
match=
"xsl-perform-sort"
>
<xsl:for-each
select=
"(1, 2, 3)"
>
<xsl:copy-of
select=
"current()"
/>
<!-- Reports line 9 column 0 -->
</xsl:for-each>
<xsl:variable
name=
"sortedSet2"
as=
"xs:string*"
>
<xsl:perform-sort>
<xsl:sort
select=
"."
/>
<xsl:copy-of
select=
"node"
/>
<!-- Reports line 15 column 4 -->
</xsl:perform-sort>
</xsl:variable>
<xsl:value-of
select=
"$sortedSet2"
separator=
" "
/>
</xsl:template>
<!--
Command:
java -cp .;saxon-he-12.5.jar net.sf.saxon.Transform -s:sample-copy-of.xml -xsl:sample-copy-of-column.xsl -T:net.sf.saxon.coverage.CoverageTraceListener -opt:-j 1>result.txt 2>sample-copy-of-trace.xml
SOURCE XML FILE (sample-copy-of.xml)
<xsl-perform-sort>
<node>400</node>
<node>200</node>
<node>100</node>
<node>300</node>
</xsl-perform-sort>
TRACE
<?xml version="1.0" encoding="UTF-8"?>
<coverage>
<T type="dot"
module="..."
line="9"
column="0"
count="3"/>
<T type="sequence"
module="..."
line="8"
column="38"
count="1"/>
<T type="xsl:template"
module="..."
line="7"
column="42"
count="1"
match="xsl-perform-sort"/>
<T type="convert"
module="..."
line="15"
column="4"
count="1"/>
<T type="forEach"
module="..."
line="8"
column="38"
count="1"/>
<T type="xsl:value-of"
module="..."
line="18"
column="56"
count="1"/>
</coverage>
-->
</xsl:stylesheet>
« Previous
1
2
3
4
Next »
(3-3/4)
Loading...