@plurnk/plurnk-mimetypes-application-xml 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -18
- package/SPEC.md +38 -0
- package/dist/ApplicationXml.d.ts.map +1 -1
- package/dist/ApplicationXml.js +6 -1
- package/dist/ApplicationXml.js.map +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @plurnk/plurnk-mimetypes-application-xml
|
|
2
2
|
|
|
3
|
-
`application/xml`
|
|
3
|
+
`application/xml` and `text/xml` mimetype handler for the [plurnk](https://github.com/plurnk) ecosystem. DOM via [@xmldom/xmldom](https://www.npmjs.com/package/@xmldom/xmldom), XPath 1.0 via [xpath](https://www.npmjs.com/package/xpath), source extents via [@lezer/xml](https://www.npmjs.com/package/@lezer/xml).
|
|
4
4
|
|
|
5
5
|
## install
|
|
6
6
|
|
|
@@ -10,23 +10,9 @@ npm i @plurnk/plurnk-mimetypes-application-xml
|
|
|
10
10
|
|
|
11
11
|
## what it does
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
- **deep-json** (`deepJson`) — full DOM tree as nested objects. Each element: `{ type: tagName, attrs: {...}, children: [...] }` per the framework's `attrs` convention. Text-only elements collapse to a `text` field; mixed content keeps text nodes as `{ type: "#text", text }` siblings.
|
|
17
|
-
- **deep-xml** (framework-projected) — the deep-json projected back to XML via `projectJsonToXml`. xpath queries like `//book[@id='b1']/title` work naturally.
|
|
18
|
-
|
|
19
|
-
`query()` overrides the `xpath` dialect to run against the real DOM (via the `xpath` package's XPath 1.0 engine over xmldom). `jsonpath` inherits the framework's default dispatch against `deepJson`. `regex` and `glob` inherit text-based scanning.
|
|
20
|
-
|
|
21
|
-
Parse issues follow {§mimetype-parse-issues}:
|
|
22
|
-
|
|
23
|
-
| Source | Projections | `parseIssues` |
|
|
24
|
-
|---|---|---|
|
|
25
|
-
| Well-formed document | as above | 0 |
|
|
26
|
-
| Recoverable xmldom `error`, such as an entity declared only in the internal DTD subset | as above, over the recovered DOM | one per report |
|
|
27
|
-
| Not a document, such as a templated file (xmldom `fatalError`) | no symbols, `deepJson` null; `xpath` and `jsonpath` refuse with `QueryParseFailureError` | 1 |
|
|
28
|
-
|
|
29
|
-
The text of every case stays searchable; only a defect outside xmldom's own `ParseError` fails a derivation.
|
|
13
|
+
- `extractRaw(content)` emits the root element and its immediate children: enough shape to recognize RSS, SOAP or a Maven pom without every leaf ({§xml-shape}).
|
|
14
|
+
- `deepJson(content)` is the DOM as nested objects ({§mimetype-channel-architecture}); `xpath` runs against the real DOM and every match selects its exact lexical source ({§xml-lexical-spans}, {§xml-text-nodes}).
|
|
15
|
+
- A recoverable xmldom report is counted, not fatal; content that is not a document projects nothing and stays text-searchable ({§xml-recovery}).
|
|
30
16
|
|
|
31
17
|
## license
|
|
32
18
|
|
package/SPEC.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# XML handler
|
|
2
|
+
|
|
3
|
+
§xml-shape Symbols are the document's shape, not its leaves: the root element is a
|
|
4
|
+
`module` symbol and each immediate child element is a `field` symbol named by its
|
|
5
|
+
`id` attribute, else its `name` attribute, else its tag name, with the root's tag
|
|
6
|
+
name as `container` ({§mimetype-symbol-container}). Every symbol spans its complete
|
|
7
|
+
element. Empty input or content that is not a document has no symbols.
|
|
8
|
+
|
|
9
|
+
§xml-recovery xmldom's recoverable `error` reports, such as an entity declared only
|
|
10
|
+
in the internal DTD subset, each count as one parse issue and the channels project
|
|
11
|
+
the recovered DOM. Content that is not a document (xmldom `fatalError`: a template,
|
|
12
|
+
a truncated file) counts as one issue, has no symbols and a `null` `deepJson`, and
|
|
13
|
+
refuses XPath and JSONPath with `QueryParseFailureError`; regex and glob run
|
|
14
|
+
unaffected ({§mimetype-parse-issues}). Empty input reports no issue. Only a defect
|
|
15
|
+
outside xmldom's own `ParseError` fails a derivation.
|
|
16
|
+
|
|
17
|
+
§xml-lexical-spans XPath runs over the real DOM (XPath 1.0 through `xpath`) and
|
|
18
|
+
JSONPath over the DOM projection; every node match selects its exact lexical source
|
|
19
|
+
through the concrete syntax tree: an element without surrounding whitespace, an
|
|
20
|
+
attribute as `name = 'value'` as written, text with its entity, character-reference
|
|
21
|
+
and CDATA markup, a comment or processing instruction whole. A computed scalar is
|
|
22
|
+
locator-only; a malformed expression is `InvalidExpressionError` ({§mimetype-query}).
|
|
23
|
+
|
|
24
|
+
§xml-text-nodes XPath sees the XPath 1.0 logical text model: a CDATA section is
|
|
25
|
+
text, adjacent text coalesces into one node, an empty text node does not exist,
|
|
26
|
+
and the document node carries neither whitespace text nor the XML declaration
|
|
27
|
+
while other processing instructions remain. `matched` is the logical string; the
|
|
28
|
+
region is the lexical source ({§xml-lexical-spans}).
|
|
29
|
+
|
|
30
|
+
| Surface | Contract |
|
|
31
|
+
|---|---|
|
|
32
|
+
| `validate` | Framework default; recovery is advisory ({§xml-recovery}). |
|
|
33
|
+
| `extractRaw` | Root and immediate children ({§xml-shape}). |
|
|
34
|
+
| `deepJson` | The DOM as nested `{ type, attrs, children }` objects through the framework's `projectDomToJson`, each with its source coordinates; a text-only element collapses to `text`, mixed content keeps `#text` siblings, comments and instructions are omitted ({§mimetype-channel-architecture}). |
|
|
35
|
+
| `parseIssues` | Recovery sites ({§xml-recovery}). |
|
|
36
|
+
| JSONPath / XPath | Lexical source spans ({§xml-lexical-spans}, {§xml-text-nodes}). |
|
|
37
|
+
|
|
38
|
+
Raw source remains unchanged. Binary input is decoded as UTF-8.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationXml.d.ts","sourceRoot":"","sources":["../src/ApplicationXml.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EAMd,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAc,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationXml.d.ts","sourceRoot":"","sources":["../src/ApplicationXml.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EAMd,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAc,MAAM,0BAA0B,CAAC;AAQjH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;IAC1C,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,UAAU,EAAE,CAoBzD;IAEQ,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAKlD;IAGQ,WAAW,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAIpD;IAEc,KAAK,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CA2B3H;CACJ"}
|
package/dist/ApplicationXml.js
CHANGED
|
@@ -2,6 +2,8 @@ import { BaseHandler, InvalidExpressionError, QueryParseFailureError, queryJsonp
|
|
|
2
2
|
import { ParseError } from "@xmldom/xmldom";
|
|
3
3
|
import * as xpath from "xpath";
|
|
4
4
|
import XmlSource from "./XmlSource.js";
|
|
5
|
+
// A node whose type is ELEMENT_NODE is an element: the DOM's own contract.
|
|
6
|
+
const isElementNode = (node) => node.nodeType === 1;
|
|
5
7
|
export default class ApplicationXml extends BaseHandler {
|
|
6
8
|
extractRaw(content) {
|
|
7
9
|
const text = textOf(content);
|
|
@@ -22,7 +24,7 @@ export default class ApplicationXml extends BaseHandler {
|
|
|
22
24
|
};
|
|
23
25
|
append(root, root.tagName, "module");
|
|
24
26
|
for (let child = root.firstChild; child !== null; child = child.nextSibling) {
|
|
25
|
-
if (child
|
|
27
|
+
if (!isElementNode(child))
|
|
26
28
|
continue;
|
|
27
29
|
const element = child;
|
|
28
30
|
append(element, element.getAttribute("id") || element.getAttribute("name") || element.tagName, "field", root.tagName);
|
|
@@ -60,15 +62,18 @@ export default class ApplicationXml extends BaseHandler {
|
|
|
60
62
|
return queryJsonpathObject(value, pattern, (pointer) => regions.get(pointer));
|
|
61
63
|
}
|
|
62
64
|
let result;
|
|
65
|
+
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- xpath types its nodes by the browser's DOM; the parsed document walks the same tree
|
|
63
66
|
try {
|
|
64
67
|
result = xpath.select(pattern, source.document);
|
|
65
68
|
}
|
|
66
69
|
catch (cause) {
|
|
67
70
|
throw new InvalidExpressionError({ dialect, expression: pattern, cause });
|
|
68
71
|
}
|
|
72
|
+
// oxlint-disable-next-line typescript/no-base-to-string -- a scalar XPath value is a string, number or boolean; a node renders by its own toString
|
|
69
73
|
if (!Array.isArray(result))
|
|
70
74
|
return result === null || result === undefined ? [] : [{ matched: String(result), matching: pattern }];
|
|
71
75
|
return result.map((node, index) => {
|
|
76
|
+
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- an xpath result node is a node of the parsed tree
|
|
72
77
|
const region = source.region(node);
|
|
73
78
|
return {
|
|
74
79
|
matched: serializeXpathNode(node),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationXml.js","sourceRoot":"","sources":["../src/ApplicationXml.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,GACrB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,UAAU,EAAsC,MAAM,gBAAgB,CAAC;AAChF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;IAC1C,UAAU,CAAC,OAAuB;QACvC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;QAC7B,IAAI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AAM,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;QACnI,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAC9B,oHAAoH;YACpH,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAA0B,CAAC,CAAC;YACzD,OAAO;gBACH,OAAO,EAAE,kBAAkB,CAAC,IAAI,CAAC;gBACjC,QAAQ,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,GAAG,IAAI,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,OAAO;gBAChF,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;aACzD,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAED,SAAS,MAAM,CAAC,OAAuB;IACnC,OAAO,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAC5F,CAAC;AAED,SAAS,IAAI,CAAC,MAAkB;IAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC;AACxH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plurnk/plurnk-mimetypes-application-xml",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "application/xml and text/xml mimetype handler for plurnk-service. DOM-tree extraction via @xmldom/xmldom; xpath via the xpath package; framework structural projections.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"plurnk",
|
|
@@ -43,11 +43,12 @@
|
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"dist/**/*",
|
|
46
|
-
"README.md"
|
|
46
|
+
"README.md",
|
|
47
|
+
"SPEC.md"
|
|
47
48
|
],
|
|
48
49
|
"scripts": {
|
|
49
50
|
"test:lint": "tsc --noEmit",
|
|
50
|
-
"test:unit": "node --conditions=plurnk-dev --test src/**/*.test.ts",
|
|
51
|
+
"test:unit": "node --conditions=plurnk-dev --test ${PLURNK_TEST_CONCURRENCY:+--test-concurrency=$PLURNK_TEST_CONCURRENCY} 'src/**/*.test.ts'",
|
|
51
52
|
"test": "npm run test:lint && npm run test:unit",
|
|
52
53
|
"build:clean": "rm -rf dist",
|
|
53
54
|
"build:dist": "tsc -p tsconfig.build.json",
|
|
@@ -72,5 +73,5 @@
|
|
|
72
73
|
"url": "git+https://github.com/plurnk/plurnk-service.git",
|
|
73
74
|
"directory": "plurnk-mimetypes-application-xml"
|
|
74
75
|
},
|
|
75
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "d2647f7ec0d352b276714f22a93267aac04634b3"
|
|
76
77
|
}
|