• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FontoXML / fontoxpath / 4161802573

pending completion
4161802573

push

github

GitHub
Implement circular dependencies and partial modules

4894 of 5691 branches covered (86.0%)

Branch coverage included in aggregate %.

10517 of 11154 relevant lines covered (94.29%)

32506.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.43
/src/expressions/staticallyKnownNamespaces.ts
1
export const enum BUILT_IN_NAMESPACE_URIS {
2
        XMLNS_NAMESPACE_URI = 'http://www.w3.org/2000/xmlns/',
3
        XML_NAMESPACE_URI = 'http://www.w3.org/XML/1998/namespace',
4
        XMLSCHEMA_NAMESPACE_URI = 'http://www.w3.org/2001/XMLSchema',
5
        ARRAY_NAMESPACE_URI = 'http://www.w3.org/2005/xpath-functions/array',
6
        FUNCTIONS_NAMESPACE_URI = 'http://www.w3.org/2005/xpath-functions',
7
        LOCAL_NAMESPACE_URI = 'http://www.w3.org/2005/xquery-local-functions',
8
        MAP_NAMESPACE_URI = 'http://www.w3.org/2005/xpath-functions/map',
9
        MATH_NAMESPACE_URI = 'http://www.w3.org/2005/xpath-functions/math',
10
        FONTOXPATH_NAMESPACE_URI = 'http://fontoxml.com/fontoxpath',
11
        XQUERYX_UPDATING_NAMESPACE_URI = 'http://www.w3.org/2007/xquery-update-10',
12
        XQUERYX_NAMESPACE_URI = 'http://www.w3.org/2005/XQueryX',
13
}
14

15
export const staticallyKnownNamespaceByPrefix: {
16
        [prefix: string]: BUILT_IN_NAMESPACE_URIS | string;
17
} = {
18
        ['xml']: BUILT_IN_NAMESPACE_URIS.XML_NAMESPACE_URI,
19
        ['xs']: BUILT_IN_NAMESPACE_URIS.XMLSCHEMA_NAMESPACE_URI,
20
        ['fn']: BUILT_IN_NAMESPACE_URIS.FUNCTIONS_NAMESPACE_URI,
21
        ['map']: BUILT_IN_NAMESPACE_URIS.MAP_NAMESPACE_URI,
22
        ['array']: BUILT_IN_NAMESPACE_URIS.ARRAY_NAMESPACE_URI,
23
        ['math']: BUILT_IN_NAMESPACE_URIS.MATH_NAMESPACE_URI,
24
        ['fontoxpath']: BUILT_IN_NAMESPACE_URIS.FONTOXPATH_NAMESPACE_URI,
25
        ['local']: BUILT_IN_NAMESPACE_URIS.LOCAL_NAMESPACE_URI,
26
};
27

28
export function registerStaticallyKnownNamespace(prefix: string, namespaceURI: string) {
29
        if (staticallyKnownNamespaceByPrefix[prefix]) {
3!
30
                throw new Error('Prefix already registered: Do not register the same prefix twice.');
31
        }
32
        staticallyKnownNamespaceByPrefix[prefix] = namespaceURI;
33
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc