I have created 2 dummy xmls with fake information however they are formatted exactly like the real versions, i'm wanting to take xml1 and format the information within it into looking like xml2.
XML1
<?xml version="1.0" encoding="UTF-8"?>
<CustomData type="C1QuoteToOrderB1">
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getOrderReturn>
<CUST_NAME>Pizzas are us Ltd</CUST_NAME>
<Detail>
<UNIT_PRICE>420.69</UNIT_PRICE>
<QUANTITY>38.0</QUANTITY>
<Input id="1020754265" name="CRUST_OPTION">
<Value id="STUFFED" name="STUFFED">
<label>Cheese Stuffed</label>
</Value>
<type>SN</type>
<label>Crust Option</label>
</Input>
<Input id="1838406646" name="TOP_TWO">
<Value id="TOPTWO" name="TOPTWO">
<label>Pineapples</label>
</Value>
<type>SN</type>
<label>Topping Two</label>
</Input>
</Detail>
</getOrderReturn>
</soapenv:Body>
</soapenv:Envelope>
</CustomData>
XML2
<?xml version="1.0" encoding="UTF-8"?>
<Specifications xmlns="http://schemas.driveworks.co.uk/interop/specification/1/0">
<Specification Project="[Project Name]" Transition="[Name (Not Title) Of Transition]">
<Input Name="Customer">Pizzas are us LTD</Input>
<Input Name="Quantity">38.0</Input>
<Input Name="Crust Option">Cheese Stuffed</Input>
<Input Name="Topping Two">Pineapples</Input>
</Specification>
</Specifications>
Below i am trying to pull through the label value however the colon stop my code from working, not sure how to navigate through this. If it's not obvious enough, i have little to no experience in xml and i am just trying to implement an idea i had.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:value-of select="CustomData/soapenv:Envelope/soapenv:Body/getOrderResponse/getOrderReturn/Detail/Input/Value/label"/>
</xsl:template>
</xsl:stylesheet>
Is this possible to do using an xsl document and if so could i get some pointers, thanks.