File tree Expand file tree Collapse file tree 3 files changed +109
-58
lines changed Expand file tree Collapse file tree 3 files changed +109
-58
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <xsl : stylesheet xmlns : xsl =" http://www.w3.org/1999/XSL/Transform"
3
+ xmlns : xs =" http://www.w3.org/2001/XMLSchema"
4
+ xmlns : array =" http://www.w3.org/2005/xpath-functions/array"
5
+ xmlns : map =" http://www.w3.org/2005/xpath-functions/map"
6
+ xmlns : math =" http://www.w3.org/2005/xpath-functions/math"
7
+ exclude-result-prefixes =" #all"
8
+ expand-text =" yes"
9
+ version =" 3.0" >
10
+
11
+ <xsl : output method =" xml" indent =" yes" />
12
+ <xsl : mode on-no-match =" shallow-copy" />
13
+
14
+
15
+ <xsl : template match =" /*" mode =" #all" >
16
+ <xsl : variable name =" document" as =" xs:string" select =" 'abc'" />
17
+ <xsl : variable name =" short" as =" xs:string" select =" 'def'" />
18
+ <xsl : variable name =" quiteALongDescription" as =" xs:string" select =" 'ghi'" />
19
+
20
+
21
+ </xsl : template >
22
+
23
+
24
+
25
+ </xsl : stylesheet >
Original file line number Diff line number Diff line change 17
17
xmlns : fn =" def"
18
18
version =" 3.0" >
19
19
20
- <!-- <xsl:include href="included1.xsl"/>
21
- <xsl:import href="features/included2.xsl"/> -->
20
+ <!-- <xsl:include href="included1.xsl"/>
21
+ <xsl:import href="features/included2.xsl"/> -->
22
22
23
23
<xsl : use-package name =" example.com.package1" />
24
24
<xsl : use-package name =" example.com.package2" />
25
25
<xsl : use-package name =" example.com.package3" />
26
26
<xsl : use-package name =" example.com.package4" />
27
-
28
-
27
+
28
+
29
29
<xsl : param name =" p1" as =" xs:integer" select =" abc:test1(2)" />
30
-
30
+
31
31
<xsl : variable name =" va" as =" xs:integer" select =" 2" />
32
32
<xsl : variable name =" v1" as =" xs:integer" select =" $inc1p1" />
33
33
<xsl : variable name =" v2" as =" xs:integer" select =" $inc2p1" />
38
38
<xsl : variable name =" f1" as =" xs:string" select =" abc:test1('a')" />
39
39
40
40
<xsl : template match =" /" mode =" #all" >
41
+ <xsl : variable name =" document" as =" xs:string" select =" 'abcd'" />
42
+ <xsl : variable name =" net" as =" xs:string" select =" 'newer'" />
43
+ <xsl : message expand-text =" yes" >
44
+ ---- scope variables ----
45
+ document: {$document}
46
+ net: {$net}
47
+ </xsl : message >
41
48
<xsl : sequence select =" let $a := ($v1, $va) return $a" />
42
49
43
50
<xsl : call-template name =" included" >
53
60
</xsl : copy >
54
61
55
62
</xsl : template >
56
-
63
+
57
64
<xsl : function name =" fn:name" as =" xs:string" >
58
65
<xsl : param name =" fp1" as =" node()" />
59
66
<xsl : sequence select =" 'test'" />
60
67
</xsl : function >
61
-
68
+
62
69
</xsl : stylesheet >
You can’t perform that action at this time.
0 commit comments