Subject: Re: [xsl] adding element in with general namespace prefix From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 08 Feb 2012 17:42:29 -0500 |
it doesn't worked for me. Can you send across your code for the expected result.
t:\ftemp>type ram.xsl <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" exclude-result-prefixes="soapenv" version="1.0">
<xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template>
<xsl:template match="soapenv:Header"> <xsl:copy> <xsl:copy-of select="@*"/> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:UsernameToken> <wsse:Username>abcd</wsse:Username> <wsse:Password>ramkurra</wsse:Password> </wsse:UsernameToken> </wsse:Security> </xsl:copy> </xsl:template>
</xsl:stylesheet> t:\ftemp>type ram1.xml <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:con1="http://abc.com/DefService/" > <soapenv:Header>
</soapenv:Header> <soapenv:Body> <con1:GetDefinition> <!--Optional:--> <con1:Request><con1:Id/> </con1:Request> </con1:GetDefinition> </soapenv:Body> </soapenv:Envelope>
</s:Header> <s:Body> <con1:GetDefinition> <!--Optional:--> <con1:Request><con1:Id/> </con1:Request> </con1:GetDefinition> </s:Body> </s:Envelope>
-- 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] adding element in with ge, G. Ken Holman | Thread | Re: [xsl] adding element in with ge, Wendell Piez |
Re: [xsl] adding element in with ge, G. Ken Holman | Date | [xsl] Parent Node recursion templat, Karl Stubsjoen |
Month |