Skip to content

Commit 4f9411e

Browse files
committed
lexer: 'expand-text' attribute prevented correct tokenising with the 'as' attribute
1 parent dd3cee8 commit 4f9411e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/xslLexer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,7 @@ export class XslLexer {
877877
if (isNativeElement) {
878878
if (attName === 'as') {
879879
isXPathAttribute = true;
880+
isExpandTextAttribute = false;
880881
isTypeDeclarationAttribute = true;
881882
} else if (attName === 'saxon:options') {
882883
isXPathAttribute = true;

test/issue-144.xsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
<?START type declarations WITH ERRORS?>
3232
<xsl:variable name="test1-error" as="xs:intege" select="count(22)"/>
33+
<xsl:variable name="test1tvt-error" expand-text="yes" as="xs:intege" select="count(22)"/>
3334
<xsl:variable name="test2-error" as="xs:map(xs:integeer, mapp(xs:sstring, aarray(*)))" select="/*"/>
3435
<xsl:variable name="test3-error" as="string" select="1"/>
3536
<xsl:variable name="test4-error" as="elejment('book')" select="/*"/>

0 commit comments

Comments
 (0)