File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2023,7 +2023,7 @@ export class XsltTokenDiagnostics {
20232023let tValue = token . value ;
20242024let tParts = tValue . split ( ':' ) ;
20252025let isValidType = false ;
2026- if ( tValue === '*' || tValue === '?' || tValue === '+' ) {
2026+ if ( tValue === '*' || tValue === '?' || tValue === '+' || tValue . startsWith ( '~' ) ) {
20272027// e.g. xs:integer* don't check name
20282028isValidType = true ;
20292029} else if ( tParts . length === 1 ) {
@@ -2039,7 +2039,8 @@ export class XsltTokenDiagnostics {
20392039let nsType = xsltPrefixesToURIs . get ( tParts [ 0 ] ) ;
20402040if ( nsType !== undefined ) {
20412041if ( nsType === XSLTnamespaces . XMLSchema ) {
2042- if ( tParts [ 1 ] === 'numeric' ) {
2042+ const part2 = tParts [ 1 ] ;
2043+ if ( part2 === 'numeric' || part2 === 'anyAtomicType' ) {
20432044isValidType = true ;
20442045} else {
20452046isValidType = FunctionData . schema . indexOf ( tParts [ 1 ] + '#1' ) > - 1 ;
You can’t perform that action at this time.
0 commit comments