Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 9th, 2013, 12:28 AM
Registered User
 
Join Date: May 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi mhkay,

I think you did not get my question.

I am referring to the node just after "getResponse". That is, "ReturnMessage".

I want it should also get the prefix with namespace as the root node.

That is:

<ns0: getResponse xmlns:ns0="https://test.com">
<ns0:ReturnMessage xmlns:ns0="https://test.com">

What i am currently getting after XSLT is:

<ns0: getResponse xmlns:ns0="https://test.com">
<ReturnMessage xmlns="https://test.com">

Can't I get this using XSLT?

I suspect that it is not able to find the match using <xsl:template match="p:ReturnMessage">

I tried with <xsl:template match="ReturnMessage"> still the same result.

I also tried <xsl:template match="/getResponse/ReturnMessage"> and still the same result.

Thanks
Gopal
 
Old December 9th, 2013, 04:28 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Yes, I did get your question, it seems you didn't get my answer. XSLT 1.0 allows you to control the namespace, it doesn't allow you to control the prefix.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving child nodes to previous occurrance of the root node LearnerP XSLT 2 April 9th, 2012 04:24 AM
I used default namespace in my stylesheet but root element is not firing smandeh XSLT 2 June 9th, 2010 09:22 PM
Remove Namespace from root tag using xslt namespce prefix nisargmca XSLT 0 February 24th, 2010 01:08 AM
Need to convert an existing namespace and add new namespace to the SOAP xml Prabeen XSLT 10 April 28th, 2009 10:18 AM
Remove root namespace help? JohnBampton XSLT 2 March 6th, 2009 06:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.