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

FontoXML / fontoxpath / 6107185957

07 Sep 2023 08:15AM UTC coverage: 91.555%. Remained the same
6107185957

push

github

DrRataplan
3.30.1

4938 of 5738 branches covered (0.0%)

Branch coverage included in aggregate %.

10640 of 11277 relevant lines covered (94.35%)

97908.84 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: {
9✔
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) {
9✔
29
        if (staticallyKnownNamespaceByPrefix[prefix]) {
9!
30
                throw new Error('Prefix already registered: Do not register the same prefix twice.');
×
31
        }
32
        staticallyKnownNamespaceByPrefix[prefix] = namespaceURI;
9✔
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