xsl-list
[Top] [All Lists]

Re: [xsl] soap:Header update

2012-03-16 12:22:19
Hi,
ram wrote:
      <!-- special handling for soap:Header -->
      <xsl:template 
match="/*[local-name()='Envelope']/*[local-name()='Header']">
              
              <soapenv:Header>
              
        <xsl:call-template name="ESBHeader"></xsl:call-template>
        <xsl:call-template name="ContextHeader"></xsl:call-template>
              
              
              </soapenv:Header>
                      
      </xsl:template>

To also get the original header content, modify your template to:

<xsl:template match="/*[local-name()='Envelope']/*[local-name()='Header']">
        <soapenv:Header>
                <xsl:apply-templates select="@*|node()"/>
                <xsl:call-template name="ESBHeader"></xsl:call-template>
                <xsl:call-template name="ContextHeader"></xsl:call-template>
        </soapenv:Header>
</xsl:template>

Cheers,
Markus

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>