XSL for XML
Posted: Sat Jun 04, 2022 2:24 am
Hello,
i have below xml, having difficulty in generating xsl for this. I would like to separate this into two files based on testbook-id. I am able to list them, but not sure how can I separate them into two files.
Any help would be greatly appreciated.
here is the sample xml
i have below xml, having difficulty in generating xsl for this. I would like to separate this into two files based on testbook-id. I am able to list them, but not sure how can I separate them into two files.
Any help would be greatly appreciated.
here is the sample xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<testbooks xmlns="SOME_NS">
<testbook>
<header testbook-id="ca-cad-list">
<currency>CAD</currency>
<online-flag>true</online-flag>
</header>
<price-tables>
<price-table product-id="035:M:1:">
<online-from>2022-06-02T00:00:00.000Z</online-from>
<online-to>9999-12-31T23:59:59.000Z</online-to>
<amount quantity="1">90.00 </amount>
</price-table>
</price-tables>
</testbook>
<testbook>
<header testbook-id="ca-cad-sale">
<currency>CAD</currency>
<online-flag>true</online-flag>
</header>
<price-tables>
<price-table product-id="035:M:1:">
<online-from>2022-06-02T00:00:00.000Z</online-from>
<online-to>9999-12-31T23:59:59.000Z</online-to>
<amount quantity="1">85</amount>
</price-table>
</price-tables>
</testbook>
</testbooks>