Skip to content

Commit cf17230

Browse files
committed
add 'xs:numeric' to simpleTypes list
1 parent 57f2c1d commit cf17230

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/functionData.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,13 @@ export class FunctionData {
381381
"dateTimeStamp#1"
382382
];
383383

384-
public static readonly simpleTypes = FunctionData.schema.map(t => 'xs:' + t.substring(0, t.length - 2));
384+
private static unionSimpleTypes() {
385+
const baseSimpleTypes = FunctionData.schema.map(t => 'xs:' + t.substring(0, t.length - 2));
386+
baseSimpleTypes.push('xs:numeric');
387+
return baseSimpleTypes;
388+
}
389+
390+
public static readonly simpleTypes = FunctionData.unionSimpleTypes();
385391

386392
public static readonly namespaces = new Map([
387393
["http://www.w3.org/2005/xpath-functions/array", XSLTnamespaces.Array],

0 commit comments

Comments
 (0)