Jump to content

Replace function in XSLT


Guest paulio

Recommended Posts

Hi,I know this is simple but it is the first XSLT that I have had to build from scratch. I have a SOAP message input and I need to change a string within a tag to an other value.The message is:<env:Envelopexmlns:env="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><m:notify xmlns:m="/main"><username xsi:type="xsd:string">user1@emaill.fr</username><transactionID xsi:type="xsd:string">310757</transactionID><status xsi:type="xsd:string">10100</status><serviceType xsi:type="xsd:string">mail</serviceType><statusTimestamp xsi:type="xsd:string">01/12/2005 13:03:02</statusTimestamp><context xsi:type="xsd:string">dsl</context></m:notify></env:Body></env:Envelope>I need to change the tag <m:notify xmlns:m="/main"> to <m:notify xmlns:m="InputMessageNamespace">Has any got an XSLT that can do that??

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...