Re: [xsl] adding element in with general namespace prefix

Subject: Re: [xsl] adding element in with general namespace prefix
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 08 Feb 2012 16:49:40 -0500
At 2012-02-09 03:16 +0530, ram wrote:
i completly agree with you, but some time service provider may not like it when he sees the request, he may question, why are you keeping different namespace prefix for same namespace.
i wanted to be consistent in the entire soap request that i am sending

Then use:


  <xsl:template match="soapenv:Header">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      .....

If the input has <s:Header> then your output will be <s:Header>.

. . . . . . . . . Ken

--
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/uoui9h
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/s/
G. Ken Holman                   mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal

Current Thread