Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3330734
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:31:07+00:00 2026-05-17T23:31:07+00:00

I am struggling with what should be a simple XSL: Copy the updateResponse from

  • 0

I am struggling with what should be a simple XSL: Copy the updateResponse from the message below (note: I need XPATH 1.0 syntax for my integration system compatibility):

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:enterprise.soap.sforce.com" xmlns:n="urn:enterprise.soap.sforce.com">
    <soapenv:Body>
        <updateResponse>
            <result>
                <id>001S000000J1Bu0IAF</id>
                <success>true</success>
            </result>
        </updateResponse>
    </soapenv:Body>
</soapenv:Envelope>

I simply want the result structure to be:

<updateResponse xmlns="urn:enterprise.soap.sforce.com">
    <result>
        <id>001S000000J1Bu0IAF</id>
        <success>true</success>
    </result>
</updateResponse>

I am able to copy the soap objects, but am unsuccessful in copying the children of the soapenv:Body element. The first copy-of works for Body, but the second does not resolve the XPATH. My XMLSPY tool xpath query editor says the xpath is valid, but the XSL does not resolve.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:urn="enterprise.soap.sforce.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <xsl:namespace-alias stylesheet-prefix="soapenv" result-prefix="foo"/>
    <xsl:template match="/">
        <xsl:apply-templates select="/soapenv:Envelope/soapenv:Body/urn:updateResponse"/>
    </xsl:template>

    <xsl:template match="/soapenv:Envelope/soapenv:Body/urn:updateResponse">
        <xsl:copy-of select="."/>
    </xsl:template>
</xsl:stylesheet>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:31:08+00:00Added an answer on May 17, 2026 at 11:31 pm

    Your namespaces are mismatched between your data and your stylesheet, that seems to be the only problem.

    In your stylesheet document, change this:

    xmlns:urn="enterprise.soap.sforce.com"
    

    to this:

    xmlns:urn="urn:enterprise.soap.sforce.com"
    

    Then it will match the declared namespaces in your original input file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im struggling with syntax here: hopefully this question is v simple, im just miising
I'm really struggling with something that should be a simple matter: Showing a user
I have been struggling with something which in theory should be very simple for
I'm fairly new to jquery and struggling with something that should be fairly simple.
This (should) be a rather simple thing to do, however I am struggling. I
I'm struggling with (what I think should be) a fairly simple mod_rewrite task. Essentially,
I'm struggling with a simple toggle. Well, it should be simple. I'm visiting forums
I'm struggling to get what i think should be a simple bit of jquery/javascript
I'm struggling to find a simple example that builds and deploys a message driven
Struggling with what should be a simple layout. I want a logo, with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.