0
|
1 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
2 |
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
3 |
version="2.0">
|
|
4 |
|
|
5 |
<!-- QXmlQuery::bindVariable() never overrides xsl:variable. -->
|
|
6 |
<xsl:variable name="variableNoSelectNoBody"/>
|
|
7 |
<xsl:variable name="variableNoSelectNoBodyBoundWithBindVariable"/> <!-- Test calls bindVariable() for this. -->
|
|
8 |
<xsl:variable name="variableSelect" select="'variableSelectsDefaultValue'"/>
|
|
9 |
<xsl:variable name="variableSelectBoundWithBindVariable" select="'variableSelectsDefaultValue2'"/> <!-- Test calls bindVariable() for this. -->
|
|
10 |
<xsl:variable name="variableSelectWithTypeInt" as="xs:integer" select="3"/>
|
|
11 |
<xsl:variable name="variableSelectWithTypeIntBoundWithBindVariable" as="xs:integer" select="4"/> <!-- Test calls bindVariable() for this. -->
|
|
12 |
|
|
13 |
<xsl:param name="paramNoSelectNoBody"/>
|
|
14 |
<xsl:param name="paramNoSelectNoBodyBoundWithBindVariable"/> <!-- Test calls bindVariable() for this. -->
|
|
15 |
<xsl:param name="paramNoSelectNoBodyBoundWithBindVariableRequired" required="yes"/> <!-- Test calls bindVariable() for this. -->
|
|
16 |
<xsl:param name="paramSelect" select="'variableSelectsDefaultValue'"/>
|
|
17 |
<xsl:param name="paramSelectBoundWithBindVariable" select="'variableSelectsDefaultValue'"/> <!-- Test calls bindVariable() for this. -->
|
|
18 |
<xsl:param name="paramSelectBoundWithBindVariableRequired" required="yes"/> <!-- Test calls bindVariable() for this. -->
|
|
19 |
<xsl:param name="paramSelectWithTypeInt" as="xs:integer" select="1"/>
|
|
20 |
<xsl:param name="paramSelectWithTypeIntBoundWithBindVariable" as="xs:integer" select="1"/> <!-- Test calls bindVariable() for this. -->
|
|
21 |
<xsl:param name="paramSelectWithTypeIntBoundWithBindVariableRequired" required="yes" as="xs:integer"/> <!-- Test calls bindVariable() for this. -->
|
|
22 |
|
|
23 |
<xsl:template name="main">
|
|
24 |
<xsl:sequence select="'Variables:',
|
|
25 |
$variableNoSelectNoBody,
|
|
26 |
$variableNoSelectNoBodyBoundWithBindVariable,
|
|
27 |
$variableSelect,
|
|
28 |
$variableSelectBoundWithBindVariable,
|
|
29 |
$variableSelectWithTypeInt,
|
|
30 |
$variableSelectWithTypeIntBoundWithBindVariable,
|
|
31 |
'Parameters:',
|
|
32 |
$paramNoSelectNoBodyBoundWithBindVariable,
|
|
33 |
$paramNoSelectNoBodyBoundWithBindVariableRequired,
|
|
34 |
$paramSelectBoundWithBindVariable,
|
|
35 |
$paramSelectBoundWithBindVariableRequired,
|
|
36 |
$paramSelectWithTypeIntBoundWithBindVariable,
|
|
37 |
$paramSelectWithTypeIntBoundWithBindVariableRequired"/>
|
|
38 |
</xsl:template>
|
|
39 |
|
|
40 |
</xsl:stylesheet>
|
|
41 |
|