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 October 9th, 2014, 09:47 AM
Friend of Wrox
 
Join Date: Apr 2013
Posts: 101
Thanks: 14
Thanked 0 Times in 0 Posts
Default How to override xml value with another value?

In short whenever my xml element has the following DC19DAKHN or DC19D0000 , in xslt output I want to override that value with MN019015J .

How do I do this in XSLT?

My XML Code

Code:
<ValueID>
	<MyID>DC19DAKHN</MyID>
</ValueID>

My xslt output is

Code:
<myID>DC19D0000</myID>
I want this to look like this instead

Code:
<myID>MN019015J</myID>

Do I use If Choose?
 
Old October 10th, 2014, 09:07 AM
Friend of Wrox
 
Join Date: Apr 2013
Posts: 101
Thanks: 14
Thanked 0 Times in 0 Posts
Default

I did fix this one





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Override annotation? EliteHussar Java Basics 0 August 27th, 2010 12:32 AM
What is @Override for? Whoelse BOOK: Professional Android 2 Application Development 4 July 9th, 2010 01:51 AM
Why would you override ToString()? chobo2 C# 2008 aka C# 3.0 16 November 11th, 2008 11:01 PM
To Override or Not to Override frresh BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 May 2nd, 2005 01:33 PM





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