Open megacherry opened 1 month ago
I found another bug while testing your issue:
TypeError: Cannot read properties of null (reading '1')
at XmlParser.Object.<anonymous>.XmlParser.xmlStrictParse (src/dom/xml-parser.ts:244:60)
at XmlParser.Object.<anonymous>.XmlParser.xmlParse (src/dom/xml-parser.ts:54:21)
at tests/xslt/choose.test.tsx:614:31
at step (tests/xslt/choose.test.tsx:33:23)
at Object.next (tests/xslt/choose.test.tsx:14:53)
at tests/xslt/choose.test.tsx:8:71
at Object.<anonymous>.__awaiter (tests/xslt/choose.test.tsx:4:12)
at Object.<anonymous> (tests/xslt/choose.test.tsx:134:70)
It should take me some time to work on this. Time for me is very scarce. I'm pushing the corresponding test to the codebase, and will try to return on this in the future.
i have this xml (it's an example of an e-prescription from https://simplifier.net/eRezept/218b581d-ccbe-480e-b8d7-f5f9b925e8c4/~xml):
If i want to parse it with this xslt:
I get this result:
But if try it under https://www.freeformatter.com/xsl-transformer.html i get the correct result: