Commit c24e650
committed
feat(data-mapper-v2): Make XSLT the source of truth for map definitions
This change fundamentally shifts how Data Mapper v2 stores and loads maps:
**Core Changes:**
- XSLT is now the authoritative source for map definitions
- Added XsltParser to extract map definitions from XSLT text value templates
- Added XsltMetadataSerializer for v3 metadata format (UI layout only)
- Removed LML embedding in XSLT comments (v2 format deprecated)
**XPath to LML Conversion:**
- Convert single-quoted string literals to double quotes for LML compatibility
- Convert XPath infix math operators (+, -, *, div, mod) to function calls
- Remove namespace prefixes (math:, xs:, etc.) from function names
- Flatten associative operators (+, *) to multi-argument function calls
**Bug Fixes:**
- Fix delete button not working for custom values in unbounded inputs
- Fix node position changes not triggering dirty state (Save button)
**VS Code Extension:**
- Update file service to use XSLT content directly
- Add commands for loading/saving XSLT content1 parent 70d9a7d commit c24e650
29 files changed
Lines changed: 2724 additions & 189 deletions
File tree
- Localize/lang
- apps
- vs-code-designer
- src
- app/commands/dataMapper
- vs-code-react/src
- app/dataMapper
- services
- run-service
- state
- docs/plans
- libs
- data-mapper-v2/src
- components
- codeView
- commandBar
- test
- core
- services/dataMapperFileService
- state
- mapHandling
- __test__
- utils
- vscode-extension/src/lib/models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3810 | 3810 | | |
3811 | 3811 | | |
3812 | 3812 | | |
| 3813 | + | |
3813 | 3814 | | |
3814 | 3815 | | |
3815 | 3816 | | |
| |||
4097 | 4098 | | |
4098 | 4099 | | |
4099 | 4100 | | |
4100 | | - | |
| 4101 | + | |
4101 | 4102 | | |
4102 | 4103 | | |
4103 | 4104 | | |
| |||
4919 | 4920 | | |
4920 | 4921 | | |
4921 | 4922 | | |
| 4923 | + | |
4922 | 4924 | | |
4923 | 4925 | | |
4924 | 4926 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
Lines changed: 154 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
18 | 75 | | |
19 | 76 | | |
20 | 77 | | |
| |||
119 | 176 | | |
120 | 177 | | |
121 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
122 | 276 | | |
0 commit comments