Skip to content

Commit 85677a0

Browse files
committed
fix bug setting xpath attribute for match attribute
1 parent 2a1238a commit 85677a0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

sample/sat.xsl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
xmlns:fn="abc"
44
version="3.0">
55

6-
<!-- <xsl:include href="included1.xsl"/>
7-
<xsl:import href="features/included2.xsl"/> -->
6+
<xsl:include href="included1.xsl"/>
7+
<xsl:import href="features/included2.xsl"/>
88

99
<xsl:template name="tp1">
1010
<xsl:param name="p1" as="element()" select="a"/>
11-
<xsl:param name="p2" as="element()" select="b"/>
11+
<xsl:param name="p2" as="element()" select="b"/>
12+
<xsl:sequence select="fn:name(1,2)"/>
13+
1214
</xsl:template>
13-
15+
1416
<xsl:template match="/">
1517
<xsl:param name="mp1" as="element()" select="a"/>
1618
<xsl:param name="mp2" as="element()" select="b"/>

src/xslLexer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,7 @@ export class XslLexer {
739739
} else if (tagGlobalInstructionType == GlobalInstructionType.Template && attName === 'match') {
740740
isExpandTextAttribute = false;
741741
isGlobalInstructionMatch = true;
742+
isXPathAttribute = true;
742743
} else if (collectParamName && attName === 'name') {
743744
isGlobalParameterName = true;
744745
} else {

0 commit comments

Comments
 (0)