473,598 Members | 3,276 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSLT "choose" does not overwrite the innerText of the node.

I'm still stuck at this one ;-(

I want to overwrite the "numeric" value of my node with a lookup value.
<xsl:for-each select="PRODUCT-TYPE">
<xsl:when test=".='6'">Bi ke</xsl:when>
<xsl:when test=".='7'">Ca r</xsl:when>
<xsl:when test=".='1'">Va n</xsl:when>
<xsl:otherwise> UNDEFINED</xsl:otherwise>
<xsl:copy-of select="." />


The output is incorrect.
1) Yes, it recognises that the value "6", corresponds to value "Bike"
2) yes, it displays the value "Bike".

1) it pre-pends the value "Bike" to the <PRODUCT-TYPE> node.
2) it does NOT overwrite the value "6" with the "Bike"

here is the output. (please note that the formatting on this page means
that a SINGLE row takes up 2 lines):

I simply want the output to be:

Can someone help?I'm in a desperate hurry to resolve this, and have scoured
the previous posts to see if i could find a similar scenario.

many thanks,

Message posted via http://www.dotnetmonster.com
Nov 12 '05 #1
1 1751

Message posted via http://www.dotnetmonster.com
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: chris yoker via DotNetMonster.com | last post by:
hiya, i have an xml doc, and I'd like to assign lookup values. Eg, if the "PRODUCT-TYPE" is 6, then I insert "bike" into the innerText. <code> <rows> <row> <PRODUCT-TYPE>6</PRODUCT-TYPE> <PRODUCT-DATE>01/01/2003</PRODUCT-DATE> </row>
by: guido_brasletti | last post by:
Hi, I'm asking for help because I read dozens of threads on this subject, but I still cannot make it work. I'm developing an ASP script (running on a SBS 2k. I'm a beginner with ASP) to use on our intranet which does searching on our file server using Indexing Services. To let the users specify the scope (from which file-server folder start to search) I need to display on client pc's (Win 2k or Win XP Pro) a "choose folder" dialog.
by: GS | last post by:
Hi, I have dropdown list bound to a Table, I don't want dropdown list to select first row from a table but rather to display "Choose" and when user clicks it then to display available values. How can I do that?
by: arnold | last post by:
Hi, I've been knocking my head against the wall trying to create an XSL transform to perform "normalizations" of a set of XML files that have a common structure. % XML file before transform
by: john sun | last post by:
Hi, Dear gurus, In the web deployment project, there is one option called "Output Assemblies page". The first choice is "Merge all outputs to a single assembly", According to MSDN, "Merges all the output assemblies from the compiler into a single assembly. This setting is equivalent to the -o assemblyname option of
by: R2d2Rabeau | last post by:
Hi all, I have an application that manipulates excel files without any problem. The problem is for a certain folder where files are giving me an error: When I check those files Excel ask me to choose the file that best describes my data as the Text Wizard has determined that my data is delimited.... How can I modify my C# Net 2.0 M (COM Excel 11.0) program to bypass this error? I am surprised because in my program, "t" has already been...
by: Max2006 | last post by:
Hi, I have a DropDown bound to a DataTable and I would like to add "Please Choose" as the 1st default item. I know that I can add "Please Choose" to the DataTable; but I wonder if I do the same without manipulating the DataTable. Thanks, Max
by: =?Utf-8?B?TWFyayBIb2xsYW5kZXI=?= | last post by:
Hi All, I have registered the steep valley XP Common Controls to the GAC, But I noticed that it does not show up automatically in the Choose Toolbox Items" List. I have to specifically browse to it's location and then add it. My Question: Is there any way that it can be added automaticaly like using a command line utility such as gacutil that can be run in a batch file to add this to the
by: Cirene | last post by:
I have a databound drop down list. What is the easiest way to put the 1st item as "choose one"? Thanks.
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.