Skip to content

Commit 223b86a

Browse files
committed
new tests
1 parent 60dc88d commit 223b86a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

test/issue-144.xsl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<xsl:variable name="test16" as="attribute(*, xs:date)" select="//@*"/>
2525
<xsl:variable name="test17" as="element(*, xs:integer)" select="//*"/>
2626
<xsl:variable name="test18" as="element(as)" select="/*"/>
27+
<xsl:variable name="new" as="function(*)" select="function() {}"/>
2728

2829
<xsl:function name="fn:main" as="item()*">
2930
<!-- no missing context-item error: -->
@@ -69,7 +70,10 @@
6970
<xsl:variable name="test26-error" as="attribute(xs:string)" select="."/>
7071
<xsl:variable name="test27-error" as="function(book, library)" select="."/>
7172
<xsl:variable name="test29-error" as="element(?)" select="."/>
72-
<xsl:variable name="test30-error" as="element(..)?" select="."/>
73+
<xsl:variable name="test30-error" as="element(..)?" select="."/>
74+
<xsl:variable name="test31-error" as="function()" select="function() {}"/>
75+
<xsl:variable name="test32-error" as="element()()" select="function() {}"/>
76+
7377

7478
<?END type declarations WITH ERRORS?>
7579

test/test.xsl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
expand-text="yes"
1010
version="3.0">
1111

12-
<xsl:variable name="test6" as="(array(*))?" select="."/>
13-
<xsl:variable name="test5" as="(function(element()) as xs:string)?" select="."/>
12+
<xsl:variable name="test6" as="array()" select="."/>
1413

1514

1615
</xsl:stylesheet>

0 commit comments

Comments
 (0)