Hi,
I have an application that calls a web service (axis based) to get a response in the following format:
<?xml version="1.0"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <axis2ns394:ServiceLevelDetailsResponse xmlns:axis2ns394="urn:myco:com:mapping:service:3.0"> <ns1:errorFlag xmlns:ns1="urn:myco:com:mapping:service:3.0">false</ns1:errorFlag> <axis2ns394:customerProgram> <axis2ns394:name>ABC</axis2ns394:name> <axis2ns394:description>ABC SERVICES</axis2ns394:description> <axis2ns394:programRank>1</axis2ns394:programRank> <axis2ns394:bindOptions> <axis2ns394:name>PRO1A</axis2ns394:name> <axis2ns394:description>Complete Home Solution</axis2ns394:description> <axis2ns394:programName>PROMO</axis2ns394:programName> <axis2ns394:programDescription>Promotional Bundle 1A</axis2ns394:programDescription> </axis2ns394:bindOptions> <axis2ns394:bindOptions> <axis2ns394:name>PRO2A</axis2ns394:name> <axis2ns394:description>Buy 1 Get 1 Free</axis2ns394:description> <axis2ns394:programName>PROMO</axis2ns394:programName> <axis2ns394:programDescription>Promotional Bundle 2A</axis2ns394:programDescription> </axis2ns394:bindOptions> </axis2ns394:customerProgram> </axis2ns394:ServiceLevelDetailsResponse> </soapenv:Body> </soapenv:Envelope>
Here - the namespace 'axis2ns394' is generated dynamically at the runtime. I need to write an XSLT to flatten this XML to a simpler XML (Say one html table with one row for each 'customerProgram'). But I am not sure how to handle these dynamic namespaces.
Any help will be greatly appreciated.
Regards,
- Ashish