swc/crates/swc_xml_parser/tests/fixture/pi/output.json
2022-12-03 03:52:48 +00:00

483 lines
10 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 717,
"ctxt": 0
},
"children": [
{
"type": "ProcessingInstruction",
"span": {
"start": 1,
"end": 69,
"ctxt": 0
},
"target": "xml-stylesheet",
"data": "type=\"text/xsl\" href=\"/Content/Glossary/main.xsl\""
},
{
"type": "Element",
"span": {
"start": 70,
"end": 717,
"ctxt": 0
},
"tagName": "root",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 76,
"end": 81,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 81,
"end": 92,
"ctxt": 0
},
"target": "xslt",
"data": "ma"
},
{
"type": "Text",
"span": {
"start": 92,
"end": 97,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 97,
"end": 119,
"ctxt": 0
},
"target": "xslt",
"data": "m"
},
{
"type": "Text",
"span": {
"start": 119,
"end": 124,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 124,
"end": 132,
"ctxt": 0
},
"target": "xslt",
"data": ""
},
{
"type": "Text",
"span": {
"start": 132,
"end": 137,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 137,
"end": 146,
"ctxt": 0
},
"target": "xslt",
"data": ""
},
{
"type": "Text",
"span": {
"start": 146,
"end": 151,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 151,
"end": 169,
"ctxt": 0
},
"target": "xml-stylesheet",
"data": ""
},
{
"type": "Text",
"span": {
"start": 169,
"end": 174,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 174,
"end": 195,
"ctxt": 0
},
"target": "foo",
"data": "version=\"1.0\""
},
{
"type": "Text",
"span": {
"start": 195,
"end": 200,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 200,
"end": 221,
"ctxt": 0
},
"target": "foo",
"data": "version='1.0'"
},
{
"type": "Text",
"span": {
"start": 221,
"end": 226,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 226,
"end": 264,
"ctxt": 0
},
"target": "foo",
"data": "version='1.0' encoding=\"UTF-8\""
},
{
"type": "Text",
"span": {
"start": 264,
"end": 269,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 269,
"end": 307,
"ctxt": 0
},
"target": "foo",
"data": "version='1.0' encoding='UTF-8'"
},
{
"type": "Text",
"span": {
"start": 307,
"end": 312,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 312,
"end": 350,
"ctxt": 0
},
"target": "foo",
"data": "version='1.0' encoding='utf-8'"
},
{
"type": "Text",
"span": {
"start": 350,
"end": 355,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 355,
"end": 394,
"ctxt": 0
},
"target": "foo",
"data": "version='1.0' encoding='EUC-JP'"
},
{
"type": "Text",
"span": {
"start": 394,
"end": 399,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 399,
"end": 454,
"ctxt": 0
},
"target": "foo",
"data": "version='1.0' encoding='UTF-8' standalone='yes'"
},
{
"type": "Text",
"span": {
"start": 454,
"end": 459,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 459,
"end": 513,
"ctxt": 0
},
"target": "foo",
"data": "version='1.0' encoding='UTF-8' standalone='no'"
},
{
"type": "Text",
"span": {
"start": 513,
"end": 518,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 518,
"end": 555,
"ctxt": 0
},
"target": "foo",
"data": "version='1.0' standalone='no'"
},
{
"type": "Text",
"span": {
"start": 555,
"end": 560,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 560,
"end": 598,
"ctxt": 0
},
"target": "foo",
"data": "version='1.0' standalone='no' "
},
{
"type": "Text",
"span": {
"start": 598,
"end": 603,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 603,
"end": 610,
"ctxt": 0
},
"target": "foo",
"data": ""
},
{
"type": "Text",
"span": {
"start": 610,
"end": 615,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 615,
"end": 624,
"ctxt": 0
},
"target": "f",
"data": "?oo"
},
{
"type": "Text",
"span": {
"start": 624,
"end": 629,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 629,
"end": 639,
"ctxt": 0
},
"target": "f",
"data": "?oo?"
},
{
"type": "Text",
"span": {
"start": 639,
"end": 644,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 644,
"end": 655,
"ctxt": 0
},
"target": "f",
"data": "?????"
},
{
"type": "Text",
"span": {
"start": 655,
"end": 660,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 660,
"end": 673,
"ctxt": 0
},
"target": "test",
"data": "aaa "
},
{
"type": "Text",
"span": {
"start": 673,
"end": 678,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 678,
"end": 689,
"ctxt": 0
},
"target": "test",
"data": "? "
},
{
"type": "Text",
"span": {
"start": 689,
"end": 694,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "ProcessingInstruction",
"span": {
"start": 694,
"end": 709,
"ctxt": 0
},
"target": "test",
"data": "a a a "
},
{
"type": "Text",
"span": {
"start": 709,
"end": 710,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
}
]
}
]
}