NOEL ALEX MAKUMULI schrieb am 29.04.2009 um 00:29:21 (+0300): > i try to transform a SOAP_Message XML file to a normal XML file
What's a normal XML file? :-) > my XSL transformation looks like below... > <xsl:template match="/"> > <Root> > <xsl:value-of select="SOAP-ENV:Envelope/soapenv:Header/cmn:timeStamp"/> > <xsl:value-of > select="SOAP-ENV:Envelope/soapenv:Header/ns:getReportResponse/response/companyResponse/responseHeader/cmn:languageCode" > /> > <xsl:value-of > select="SOAP-ENV:Envelope/soapenv:Header/ns:getReportResponse/response/companyResponse/responseHeader/cmn:responseStatus" > /> > </Root> > > the timeStamp can be retrieved easily but however the field > responseStatus can not be retrieved..i get an empty element.. Maybe that's because there is no cmn:responseStatus in your input? Maybe you wanted to <xsl:copy-of select="//cmn:state"/> ? > i have tried to search for a nice reason and people have just hinted > the namespace issue and i have not managed to clear reason like what > is the cause exactly... It's easy to lose reason amidst such a namespace horror show as the one you posted. A horror soap opera, more properly. Really looks like a parody of SOAP. I counted nine namespaces, two of which are unused. You may also want to check if you really want <xsl:value-of>, which extracts the string value, or <xsl:copy-of>, which copies the nodes. You can get a better answer if you tell us (or maybe the XSL-List at Mulberrytech.com) what your desired output looks like. Michael Ludwig