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

Subject: Re: [xsl] adding element in with general namespace prefix
From: ram <ram_kurra@xxxxxxxxxxx>
Date: Thu, 9 Feb 2012 03:46:10 +0530 (IST)
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@xxxxxxxxxxxxxxxxxxxx> wrote:

> From: G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx>
> Subject: Re: [xsl] adding element in with general namespace prefix
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx, xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxx
> Google+ profile: https://plus.google.com/116832879756988317389/about
> Legal business disclaimers:    http://www.CraneSoftwrights.com/legal

Current Thread