473,734 Members | 2,511 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML text reformatting

I have some XML extended language that generates output.
Everything works ok.
I have created additional xsl templates for reformatting strings,
mathematical calculations and reformatting numbers.
It also works ok.
Finally, I'm missing one step.
I need to put all these results as values closed in quotes, everything
in one line.

Example input is:

"<customercode> 12.23-20</customercode>"
,"<money>0.0 0</money>"
,"<spaces>Compa ny name </spaces>"
XSL changes these to:

1223-20
0,00
Company name
And I need final result:
"1223-20","0,00","Com pany name"


I tried with one node that has all other nodes inside and do
apply-templates for all of them, but I get multiple lines.
Or the other way I get single line without quotes.
Any advice?

D.
Jul 25 '05 #1
0 1091

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

Similar topics

21
6553
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help Workshop program: hcw.exe that's included with Visual Basic. This exact same file compiled perfectly with no notes, warnings or errors prior to reformatting my system. Prior to the reformatting, I copied the help.rtf file onto a CD and checked the box to...
2
2738
by: Bettina | last post by:
How can I do to format the text shown in alt="..." Is it possible to define the size of the field?, colour of background, font, etc? Thank you Bettina
0
1395
by: jeggertsen | last post by:
I noticed a reformatting text problem with IE5 on a mac. This is the only place I've seen this happen. Safari on mac is fine, as is every browser I tested (IE6,Firefox,NN) on windows. When a block level element (ie. a <p> or <div>) contains links (<a href="">), IE on the mac will flow the text in a very irregular way, breaking the text flow where there is no apparent reason for breaking it, sometimes halfway the line, although there is...
0
1111
by: Adrian | last post by:
The print routines that the help-option offers do not have text wrapping. Is there a way to introduce this? Otherwise when you print a multiline textbox, you have to chop up the textBox.Text into strings before printing, thus reformatting the text box text.. You are then also restricted to true type like courier new, which isn't the most attractive font
7
1242
by: Lloyd Sheen | last post by:
I know I have seen a way to stop the terrible reformatting that VS 2003 IDE does. Beyond that is MS going to do a better (could not do a worse) job of auto formatting. Every change I make to the format of the page causes reformatting which totally gets rid of the idea that controls are nested and have some structure. Please help
8
161716
by: John Brock | last post by:
I am creating an Excel workbook using VB.NET, and have run into a problem. Excel at times insists on reformatting data that I enter into cells, e.g., converting "01234" to "1234", and this screws me up when I need to read the data back. When I run into this problem using Excel interactively I simply change the cell Number format from "General" to "Text", but I haven't been able to figure out how to do this using VB.NET. Here is a code...
6
2713
by: bfowlkes | last post by:
Hello, I am trying to parse two pre-formatted text files and write them to a different files formatted in a different way. The story about this is I was hired along with about 20 other people and it seems we are trying to learn the whole C language in two weeks! To top it all off, I was an English Major, but I'm trying my best. Ok back to the program. So we have two files product_catalog.txt and sales_month.txt The info in...
13
1428
by: Flomo Togba Kwele | last post by:
For some reason, using Ctrl-leftarrow or Ctrl-rightarrow does not move the cursor in VS2005. Opening the same VB file in Notepad, this function works by skipping (or reverse skipping) to the next word. Is this the way it's supposed to work, or have I mangled some option? Thanks, Flomo
12
1983
by: John Brawley | last post by:
Is this going to cause me a portability problem? Purpose: make it easy for me to write my 'help' text block in the .cpp file, just as I wish it to be output 'formatted-ly' to the user upon demand while the program is running. #include <iostream>; using namespace std; int main() { cout<<"these \
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9449
Oralloy
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...
1
9236
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,...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
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();...
0
4550
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...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.