EDN Admin
Well-known member
I have an xml file which resembles the following code:<br/>
<div style="color:black;background-color:white
<pre><br/>
<Products><br/>
<br/>
<Product_Group_Name><br/>
<br/>
<Rental_Group_Name><br/>
<br/>
<Product_Name A><br/>
<br/>
<Component_Name 1><br/>
<br/>
<Product_Name B><br/>
<br/>
<Component_Name 1><br/>
<br/>
<Product_Name A><br/>
<br/>
<Component_Name 2><br/>
[/code]
I would like a Product Name to appear once with all its respective components to fall under it.<br/> <br/> Here is an example of what I am trying to achieve <br/>
<div style="color:black;background-color:white
<pre> <Product_Name A><br/>
<br/>
<Component_Name 1><br/>
<br/>
<Component_Name 2><br/>
<br/>
<Product_Name B><br/>
<br/>
<Component Name 1><br/>
<br/>
[/code]
Additionally, the component node contains another attribute model Number. I would like to place Model Number as a new node nesting under the component name.<br/> <br/> Example: <Component_Name "1" Model_Number=".... <br/> <br/> <Component_Name "1 <br/> <Model_Number "... <br/> <br/> How can this be achieved? <br/> <br/> I am aware that I have to use an XSLT file but I am not sure what format it should take. Any help will be greatly appreciated.<br/> <br/> Thanks<br/> Millette
View the full article
<div style="color:black;background-color:white
<pre><br/>
<Products><br/>
<br/>
<Product_Group_Name><br/>
<br/>
<Rental_Group_Name><br/>
<br/>
<Product_Name A><br/>
<br/>
<Component_Name 1><br/>
<br/>
<Product_Name B><br/>
<br/>
<Component_Name 1><br/>
<br/>
<Product_Name A><br/>
<br/>
<Component_Name 2><br/>
[/code]
I would like a Product Name to appear once with all its respective components to fall under it.<br/> <br/> Here is an example of what I am trying to achieve <br/>
<div style="color:black;background-color:white
<pre> <Product_Name A><br/>
<br/>
<Component_Name 1><br/>
<br/>
<Component_Name 2><br/>
<br/>
<Product_Name B><br/>
<br/>
<Component Name 1><br/>
<br/>
[/code]
Additionally, the component node contains another attribute model Number. I would like to place Model Number as a new node nesting under the component name.<br/> <br/> Example: <Component_Name "1" Model_Number=".... <br/> <br/> <Component_Name "1 <br/> <Model_Number "... <br/> <br/> How can this be achieved? <br/> <br/> I am aware that I have to use an XSLT file but I am not sure what format it should take. Any help will be greatly appreciated.<br/> <br/> Thanks<br/> Millette
View the full article