Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 15th, 2006, 11:05 PM
pe3no@N05PAM.o2.pl
Guest
 
Posts: n/a
Default 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.
  #2  
Old December 16th, 2006, 06:05 PM
Peter Flynn
Guest
 
Posts: n/a
Default Re: How to get a blank row - when displaying xml in FireFox ???

pe3no@N05PAM.o2.pl wrote:
Quote:
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.
Quote:
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.
Quote:
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.
Quote:
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/
  #3  
Old December 16th, 2006, 09:55 PM
pe3no@N05PAM.o2.pl
Guest
 
Posts: n/a
Default Re: How to get a blank row - when displaying xml in FireFox ???

Peter Flynn napisał(a):
Quote:
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.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles