i need to merge shop products which contains size in name. As you can see i have to cut size from product name and put it to new element inside group-element "SIZES", the same thing with PARTNO and STOCK which are needed to identify product, his sizes and quantity. I created some xslt with template and foreach loop but i dont know how to verify if some node was created before.
Its very important for me because xslt is my new resposibility in my job, im new with xslt so my code is very simple and ugly.
here is example xml:
<?xml version="1.0" encoding="Windows-1250"?>
ZBRS180 CZERWONA BRAMKA PIŁKARSKA
167.01
5907695527654
177
NJ2117 A NIEBIESKO-RÓŻOWE SIZE. M (34-37) ŁYŻWOROLKI NILS
EXTREME
113.01
5907695510333
158
NJ2117 A NIEBIESKO-RÓŻOWE SIZE. L (38-41) ŁYŻWOROLKI NILS
EXTREME
113.01
5907695510334
35
**Output file should looks like that:**
<?xml version="1.0" encoding="Windows-1250"?>
ZBRS180 CZERWONA BRAMKA PIŁKARSKA
167.01
5907695527654
177
NJ2117 A NIEBIESKO-RÓŻOWE ŁYŻWOROLKI NILS EXTREME
M (34-37)
L (38-41)
5907695510333
5907695510334
158
35
113.01
Here is my xsl code:
<!-- Creating variable with node name -->
<!-- Looking for SIZES -->
<!-- Looking for EANS -->
<!-- Looking for external codes -->
<!-- Looking for stocks -->
<!-- Filling elements to no size item -->
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)