namespaces.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /**
  2. * @licstart The following is the entire license notice for the
  3. * JavaScript code in this page
  4. *
  5. * Copyright 2022 Mozilla Foundation
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. * @licend The above is the entire license notice for the
  20. * JavaScript code in this page
  21. */
  22. "use strict";
  23. Object.defineProperty(exports, "__esModule", {
  24. value: true
  25. });
  26. exports.NamespaceIds = exports.$buildXFAObject = void 0;
  27. const $buildXFAObject = Symbol();
  28. exports.$buildXFAObject = $buildXFAObject;
  29. const NamespaceIds = {
  30. config: {
  31. id: 0,
  32. check: ns => ns.startsWith("http://www.xfa.org/schema/xci/")
  33. },
  34. connectionSet: {
  35. id: 1,
  36. check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-connection-set/")
  37. },
  38. datasets: {
  39. id: 2,
  40. check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-data/")
  41. },
  42. form: {
  43. id: 3,
  44. check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-form/")
  45. },
  46. localeSet: {
  47. id: 4,
  48. check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-locale-set/")
  49. },
  50. pdf: {
  51. id: 5,
  52. check: ns => ns === "http://ns.adobe.com/xdp/pdf/"
  53. },
  54. signature: {
  55. id: 6,
  56. check: ns => ns === "http://www.w3.org/2000/09/xmldsig#"
  57. },
  58. sourceSet: {
  59. id: 7,
  60. check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-source-set/")
  61. },
  62. stylesheet: {
  63. id: 8,
  64. check: ns => ns === "http://www.w3.org/1999/XSL/Transform"
  65. },
  66. template: {
  67. id: 9,
  68. check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-template/")
  69. },
  70. xdc: {
  71. id: 10,
  72. check: ns => ns.startsWith("http://www.xfa.org/schema/xdc/")
  73. },
  74. xdp: {
  75. id: 11,
  76. check: ns => ns === "http://ns.adobe.com/xdp/"
  77. },
  78. xfdf: {
  79. id: 12,
  80. check: ns => ns === "http://ns.adobe.com/xfdf/"
  81. },
  82. xhtml: {
  83. id: 13,
  84. check: ns => ns === "http://www.w3.org/1999/xhtml"
  85. },
  86. xmpmeta: {
  87. id: 14,
  88. check: ns => ns === "http://ns.adobe.com/xmpmeta/"
  89. }
  90. };
  91. exports.NamespaceIds = NamespaceIds;