xsl-list
[Top] [All Lists]

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

2012-02-08 16:16:22
it doesn't worked for me. Can you send across your code for the expected result.

--- On Thu, 9/2/12, G. Ken Holman <gkholman(_at_)CraneSoftwrights(_dot_)com> 
wrote:

From: G. Ken Holman <gkholman(_at_)CraneSoftwrights(_dot_)com>
Subject: Re: [xsl] adding element in with general namespace prefix
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com, 
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Date: Thursday, 9 February, 2012, 3:19 AM
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(_at_)CraneSoftwrights(_dot_)com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--