[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Converting from xml to xml using xslt---Thank you

Subject: RE: Converting from xml to xml using xslt---Thank you
From: "Bhashetty, Mahesh \(GTI\)" <Mahesh_Bhashetty@xxxxxx>
Date: Fri, 29 Feb 2008 00:45:01 -0500
RE:   Converting from xml to xml using xslt---Thank you
Hello Martinn Honnen,

Thank you very much for your prompt response.
Your solution worked for me.

Thanks a lot to you and the site.

Mahesh

-----Original Message-----
From: Martin Honnen [mailto:Martin.Honnen@xxxxxx]
Sent: Thursday, February 28, 2008 10:10 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Converting from xml to xml using xslt


Bhashetty, Mahesh (GTI) wrote:

> 		I would like to replace the xml header with the soap
> envelope header and everything else should remain the same.
> 		How should I test this xsl? Which is simple and good
> xslt processor?
>
>
>
> 		For example:
>
> 		I/P: <?xml version="1.0" encoding="UTF-8"?>
>
> 			<Reports><Report DocumentID="3310218" ....>
> ...... <Reports>
>
>
> 		O/P:
>
> 				<soap:Envelope
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> 				<soap:Body><setResearchOpinion
> xmlns="http://www.dsd.ml.com/x4ml/TGRPC0HQ/Custom">
>
> 			<Reports><Report DocumentID="3310218"  ....>
> ...../Reports>
> 			<soap:Body>
> 			</soap:Envelope>

   <xsl:stylesheet
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     version="1.0"

     <xsl:output method="xml" omit-xml-declaration="yes"/>

     <xsl:template match="/">

<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
				<soap:Body><setResearchOpinion
xmlns="http://www.dsd.ml.com/x4ml/TGRPC0HQ/Custom">


   <xsl:copy-of select="*"/>

			<soap:Body>
			</soap:Envelope>
    </xsl:template>
  </xsl:stylesheet>



--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.