Skip to content

Commit e91d20a

Browse files
committed
linter: when verifying a type's name, if a type is imported from an XML schema we cannot easily get the set of defined types, so, provided the type's namespace is declared, report no error
1 parent 5d198c4 commit e91d20a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/xsltTokenDiagnostics.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,6 +2045,9 @@ export class XsltTokenDiagnostics {
20452045
} else {
20462046
isValidType = FunctionData.schema.indexOf(tParts[1] + '#1') > -1;
20472047
}
2048+
} else {
2049+
// assume this is an imported XML Schema type
2050+
isValidType = true;
20482051
}
20492052
}
20502053
}

0 commit comments

Comments
 (0)