Pradeep0308
asked on
Need XSLT
Hi My input XML looks like below:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Response xmlns="http:/abcd.com/Invoice/">
<User>
<Number>5555550271</Number >
<Alias>Sample Test</Alias>
<Title>Sample Test</Title>
<Type>Sample Test</Type>
<RegisterTime>2013-12-06T0 0:00:00+02 :00</Regis terTime>
</User>
<User>
<Number>5555550295</Number >
<Alias>Sample Test</Alias>
<Title>Sample Test</Title>
<Type>Sample Test</Type>
<RegisterTime>2013-12-06T0 0:00:00+02 :00</Regis terTime>
</User>
</Response >
</s:Body>
</s:Envelope>
I need a XSLT to remove the SOAP headers and have the output in a HTML format with a table having header Columns as Number, Alias, Title, Type and RegisterTime and then the corresponding values below in rows.
Regards
Pradeep.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Response xmlns="http:/abcd.com/Invoice/">
<User>
<Number>5555550271</Number
<Alias>Sample Test</Alias>
<Title>Sample Test</Title>
<Type>Sample Test</Type>
<RegisterTime>2013-12-06T0
</User>
<User>
<Number>5555550295</Number
<Alias>Sample Test</Alias>
<Title>Sample Test</Title>
<Type>Sample Test</Type>
<RegisterTime>2013-12-06T0
</User>
</Response >
</s:Body>
</s:Envelope>
I need a XSLT to remove the SOAP headers and have the output in a HTML format with a table having header Columns as Number, Alias, Title, Type and RegisterTime and then the corresponding values below in rows.
Regards
Pradeep.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
Can I have the output of this as csv file instead of HTML output?
Regards
Pradeep
Can I have the output of this as csv file instead of HTML output?
Regards
Pradeep
Hi,
I just returned to my desk.
The right thing to do is to make this different questions, as you eventually did
I see both are answered now
I just returned to my desk.
The right thing to do is to make this different questions, as you eventually did
I see both are answered now
ASKER
Gertone,
Many thanks. I will continue on the new question which I created.
Regards
Pradeep
Many thanks. I will continue on the new question which I created.
Regards
Pradeep
ASKER
Thanks this worked. Could you also tell me how to generate a XML file like below through a XSLT?
<?xml version="1.0" encoding="UTF-8"?>
<ListRequest xmlns="http:/abcd.com/Invoice/">
<Number>SAMPLE TEXT</Number>
<Tax_Id>12345678</Tax_id>
<Partner>PK</Partner>
</ListRequest>
Regards
Pradeep