473,473 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to get a blank row - when displaying xml in FireFox ???

Hi,

First of all - sorry for my silly question and the horribly strange way
of using XML by me - I'm an XML n00b :) :) :)

I'm trying to write a short guide - putting everything in one file.xml

<guide_name>
<element name = "1-prerequisites">
1.1. download iso file
1.2. burn the boot-disk
1.3. boot the pc
</element>
<element name = "2-installation">
2.1. type "install"
2.2. choose your language
2.3. install packages...
</element>
</guide_name>

When displaying this in FireFox i get:

-<guide_name>
-<element name="1-prerequisites">
1.1. download iso file 1.2. burn the boot-disk 1.3. boot the pc
-</element>
-<element name = "2-installation">
2.1. type "install" 2.2. choose your language 2.3. install packages..
-</element>
</guide_name>

.... and would like to get:

- <guide_name>
- <element name="1-prerequisites">
1.1. download iso file
1.2. burn the boot-disk
1.3. boot the pc
</element>
-<element name="2-installation">
2.1. type "install"
2.2. choose your language
2.3. install packages...
</element>
</guide_name>

I've been googling for 2 hour and can't find the answer :(
The most interesting I found is this document:
http://www.w3.org/TR/2000/WD-xml-c14n-20000119.html
I was trying to add these elements at the end of the line, but no effect
"&#x9;", "&#xA;", "&#xD;"

Could you help me? Thanks in advance and
Best regards~~Piotrek~~pe3no.
Dec 15 '06 #1
2 1530
pe***@N05PAM.o2.pl wrote:
Hi,

First of all - sorry for my silly question and the horribly strange way
of using XML by me - I'm an XML n00b :) :) :)
We all have to start somewhere.
I'm trying to write a short guide - putting everything in one file.xml

<guide_name>
<element name = "1-prerequisites">
1.1. download iso file
1.2. burn the boot-disk
1.3. boot the pc
</element>
<element name = "2-installation">
2.1. type "install"
2.2. choose your language
2.3. install packages...
</element>
</guide_name>
Don't do this. First, give your markup meaningful names. "element" is
unfortunately difficult, because an element type called "element" is
just going to confuse everyone. Second, whenever you have something that
repeats, put it in an element. Linebreaks are not significant in XML:
they are equivalent to spaces: this is why you lose the distinction.

In any case, never encode numbering schemes in the text unless you are
tryin g to do something like make a transcription of an existing text.
Always let the system generate them for you.
I've been googling for 2 hour and can't find the answer :(
Nor will you. Google isn't the right tool for answering this kind of
question.
The most interesting I found is this document:
http://www.w3.org/TR/2000/WD-xml-c14n-20000119.html
I was trying to add these elements at the end of the line, but no effect
"&#x9;", "&#xA;", "&#xD;"
Don't even think about it. Try something like this instead.

<guide_name>
<procedure name="prerequisites">
<step>download iso file</step>
<step>burn the boot-disk</step>
<step>boot the pc</step>
</procedure>
<procedure name="installation">
<step>type <command>install</command></step>
<step>choose your language</step>
<step>install packages&hellip;</step>
</procedure>
</guide_name>

Then use a stylesheet language to add the numbering. That way, if you
change things or move them around, the numbering will auto-adjust.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Dec 16 '06 #2
Peter Flynn napisa³(a):
Don't even think about it. Try something like this instead.

<guide_name>
<procedure name="prerequisites">
<step>download iso file</step>
<step>burn the boot-disk</step>
<step>boot the pc</step>
</procedure>
<procedure name="installation">
<step>type <command>install</command></step>
<step>choose your language</step>
<step>install packages&hellip;</step>
</procedure>
</guide_name>

Then use a stylesheet language to add the numbering. That way, if you
change things or move them around, the numbering will auto-adjust.

///Peter
Peter, thank you for your indications :)
I probably need a good book on XML,
to understand a bit more, before I'll do something...
Best regards~~Piotrek~~pe3no.
Dec 16 '06 #3

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

Similar topics

0
by: Wynter | last post by:
RE: from Displaying a Document using the ASPNET user account to the Client Browser discussion (3/2/2004 Buddy Thanks for helping me on getting the document to display. But now I am left with a...
10
by: lorirobn | last post by:
Hi, I have a form with several combo boxes, continuous form format, with record source a query off an Item Table. The fields are Category, Subcategory, and Color. I am displaying descriptions,...
1
by: satya.mahesh | last post by:
Hi All, I am working on a problem which "eliminates blank lines in export (between headings and when a heading is empty)". I want a macro which will do this job for me. For e.g: Heading1 ...
2
by: Ram | last post by:
I have a strange problem with ASP.NET 1.1 SP1 application. Application has a asp.net page which has a datagrid in it.( data grid/PAGE has large amount of data. always more than 1MB). There is a...
7
by: Janis | last post by:
I try to understand what could be the source of a problem with displaying and hiding rows of tables using display:block/none. I've read selfhtml but could not find any hint about that. Any...
0
by: Rotsey | last post by:
Hi, I have a application that fills a html hidden control with xml serverside. I use javascript to read the value of the control on the client. The problem is the value property is blank...
10
by: John Kotuby | last post by:
Hello all... I am working on an ASP.NET 2.0 application with VS2005 and VB. I have chosen to use popup windows in some cases because it makes the user experience better (according to all the users...
4
by: Patrick Nolan | last post by:
I am using javascript to manipulate optgroups in select elements. When the results are displayed in Firefox 2.0 there is an annoying blank line at the top of the multi-line select box. This...
1
by: graphicssl | last post by:
So first of all, I'm a designer first and a light coder second. This is my first-ever attempt and setting up an e-commerce site from scratch, and I've been on a real learning curve. This is a one...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
jinu1996
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...
1
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.