{
    "inSelector": "/Dictionary",
    "outElement": "lexicographicResource",
    "textVals": [
        {
            "outElement": "language",
            "attribute": "sourceLanguage"
        }
    ],
    "children": [
        {
            "inSelector": "DictionaryEntry",
            "outElement": "entry", "jsonPlural": "entries",
            "textVals": [
                {
                    "outElement": "id",
                    "attribute": "{http://elex.is/wp1/teiLex0Mapper/meta}autogenerated"
                },
                {
                    "outElement": "headword",
                    "inSelector": ".//headword",
                    "attribute": "{http://elex.is/wp1/teiLex0Mapper/meta}innerText"
                },
                {
                    "outElement": "partOfSpeech",
                    "inSelector": ".//PartOfSpeech",
                    "attribute": "value",
					"xlat": {
					  "adjective": "adj",
					  "adverb": "adv",
					  "adverbpostposition": "x",
					  "cardinal": "num",
					  "conjunction": "cconj",
					  "interjection": "intj",
					  "noun": "noun",
					  "ordinal": "num",
					  "particle": "part",
					  "postposition": "x",
					  "postpositionpreposition": "adp",
					  "preposition": "adp",
					  "pronoun": "pron",
					  "verb": "verb"
					}
                }
            ],
            "children": [
                {
                    "outElement": "sense",
                    "inSelector": "(.//SenseGrp)|(self::*[not(descendant::SenseGrp)])",
                    "textVals": [
                        {
                            "outElement": "id",
                            "attribute": "{http://elex.is/wp1/teiLex0Mapper/meta}autogenerated"
                        }
                    ],
                    "children": [
                        {
                            "outElement": "definition",
                            "inSelector": ".//Definition",
                            "textVals": [
                                {
                                    "outElement": "value",
                                    "attribute": "{http://elex.is/wp1/teiLex0Mapper/meta}innerTextRec"
                                }
                            ]
                        },
                        {
							"outElement":  "example",
							"inSelector": ".//Example",
							"textVals": [
								{
									"outElement": "text",
									"inSelector": ".//Fragment",
									"attribute": "{http://elex.is/wp1/teiLex0Mapper/meta}innerText",
									"markers": [
										{
											"outElement": "vowelPair",
											"regex": "(?i)([aeiou])\\1",
											"note": "vowelPair markers are not actually a part of DMLex, so this is just an example of how to specify markers (using a regular expression)"
										}
									]
								},
                            	{
									"outElement": "xr",
									"note": "xr does not seem to exist in DMLex, so this is only an illustration of how to use regular expressions",
									"inSelector": ".//SeeAlso/Ptr",
									"attribute": "{http://www.w3.org/TR/xlink}href",
									"regex": "[a-z]+"
								}
							]
						}
                    ]
                }
            ]
        }
    ],
    "copyToOutElt": {
        "definitionTypeTags": [
            { "tag": "foo", "description": "..." },
            { "tag": "bar", "description": "..." } ],
        "inflectedFormTags": [
            { "tag": "baz", "description": "..." },
            { "tag": "quux", "description": "..." } ]
    }
}