syd919 0 Junior Poster in Training


Hello guys, I hope everyone is well.

I didnt know where to post this particular problem so I just put it under general, I apologize if its the wrong place.

this is one of my first few attempts to get the xml data to a specific xml format.

Its not returning the format I want

Heres my xslt

      <xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:fo=""
      xmlns:n1="" xmlns:tns="" >
      <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
      <xsl:template match="/">
      <xsl:element name="Gender"><xsl:call-template name="ConnectGetCreditReport"/></xsl:element>
      <xsl:template name="ConnectGetCreditReport">
      <xsl:for-each select="/">
      <xsl:for-each select="tns:Envelope">
      <xsl:for-each select="Body">
      <xsl:for-each select="n1:ConnectGetCreditReportResponse">
      <xsl:for-each select="ConnectGetCreditReportResult">
      <xsl:for-each select="Consumer">
      <xsl:for-each select="ConsumerDetail">
      <xsl:for-each select="Gender">

I am tryin to create a “Gender” element and get the value from the xml below.

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="" xmlns:xsi="" xmlns:xsd="">


<ConnectGetCreditReportResponse xmlns="">













<ThirdName />



<PassportNo />




Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.