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 June 1st, 2012, 03:08 AM
Registered User
 
Join Date: May 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to copy one node and change another

Hi,
now i'm stuck with simple task.
I have
Code:
<m:node1>
...
</m:node1>
<namespace:something attribute1/>
<namespaceOther:other attribute1/>
What i need to do is copy <m:node1> with all children,
and check if <namespace:* attribute1 is equal something then copy it, else not.

Would like something <template match="*:*"> but that's not possible.

Last edited by TerTer; June 1st, 2012 at 03:34 AM..
 
Old June 1st, 2012, 06:48 AM
Registered User
 
Join Date: May 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK figured it out.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy specific node and nodes that used in specific node children TerTer XSLT 1 May 30th, 2012 10:37 AM
change the value of a node anboss XSLT 2 June 12th, 2008 05:55 PM
Copy parent node and not its children bonekrusher XSLT 4 August 29th, 2007 08:44 AM
Copy all contents except current node in XSLT 2BOrNot2B XSLT 2 December 19th, 2006 06:44 PM
Copy one node to another in XSL hugoscp XML 5 September 14th, 2006 09:40 AM





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