Link to home
Start Free TrialLog in
Avatar of Pradeep0308
Pradeep0308Flag for India

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-06T00:00:00+02:00</RegisterTime>
                  </User>
                  <User>
                        <Number>5555550295</Number>
                        <Alias>Sample Test</Alias>
                        <Title>Sample Test</Title>
                        <Type>Sample Test</Type>
                        <RegisterTime>2013-12-06T00:00:00+02:00</RegisterTime>
                  </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
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pradeep0308

ASKER

Hi Gertone,

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
Hi,

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
Gertone,

Many thanks. I will continue on the new question which I created.

Regards
Pradeep