hi all,
I just started to poke the xml and related concepts. What is not clear to me is the following:
I have an xml file called person.xml and since it is so short and simple I just posted it below:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xml" href="C:\Docume nts and Settings\My Documents\XML\m inimal.xsl"?>
<people>
<person born="1912" died="1954">
<name>
<first_name>Ala n</first_name>
<last_name>Turi ng</last_name>
</name>
<profession>com puter scientist</profession>
<profession>mat hematician</profession>
<profession>cry ptographer</profession>
</person>
<person born="1918" died="1988">
<name>
<first_name>Ric hard</first_name>
<middle_initial >M</middle_initial>
<last_name>Feyn man</last_name>
</name>
<profession>phy sicist</profession>
<hobby>Playin g the bongos</hobby>
</person>
</people>
At the same time, I have an empty stylesheet, the minimal.xsl posted below as well:
<?xml version="1.0"?>
<xsl:styleshe et version="1.0" xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
</xsl:stylesheet>
My question is: why do I get the xml file back whenever I open the person.xml with IE6 on an XP box with SP2.
If I open the same person.xml with Firefox 2.0.0.14 I get the element values in a string with no paragraph breaks just as seen below:
Alan Turing computer scientist mathematician cryptographer Richard M Feynman physicist Playing the bongos.
Now, if I do a CTRL+a in the Firefox browser and do a Ctrl+V here below, this is what I get - which is the thing the author of the book where I got this sample said it will happen.
Alan
Turing
computer scientist
mathematician
cryptographer
Richard
M
Feynman
physicist
Playing the bongos
Why is it not working with IE6 and why the exotic behavior of Firefox?
Thanks a bunch,
kowlasky
2 1514 gpraghuram 1,275
Recognized Expert Top Contributor
The XML parsers used by both the browsers are totally different and thats why the difference is...
I am dobtful gerading the way you have gived the XSL path in the xml file...
Raghu
jkmyoung 2,057
Recognized Expert Top Contributor
HTML processors automatically remove newlines; they treat them as just space. You would need a <br/> tag in order to have a newline.
Since you copied and pasted, you copied the newlines as well, but they render differently as text, then as HTML.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Todd_Calhoun |
last post by:
I'm trying to generate a random number, and then concetate it to a word to
create a password.
I get the number and assign it to a variable:
+++++++++++++++++++++++++++++
word = "dog"
import random
rannum = random.randrange(100,999)
|
by: Svens |
last post by:
Hey everyone! I'm a math student working on a short script involving
logs. I have a function on my scientific calculator, and was wondering
if there was a similar funtion in python.
For example:
(log65536)/(log4)= 8
I've searched around a bit and haven't been able to find anything.
|
by: Tom |
last post by:
Hey all,
I've been planning to get myself started with DocBook for quite some
time now, so when I unexpectedly encountered a task for which DocBook
might actually be very useful, I thought I'd no longer wait.
Some Googling pointed me to several beginner tutorials, and I chose to
get myself going with the guide at
...
|
by: Alex |
last post by:
Hello
I am interested learn more about .NET but am uncertain of exactly what niche
it fills in the world of programming. (The more I read the more I am
confused).
What I am looking for is the ability ot write programs to work on mobile
phones, as well as web pages, and to interact with servers.
My background is a basic knowledge of...
|
by: IS |
last post by:
At the recommendation of several people in this newsgroup I have downloaded
two or three Compilers. One is the Beta version of Microsoft's Visual C++
2005.
I have entered a complete beginner code that looks like this:
#include <iostream>
using namespace std: //introduces namespace std
int main( void )
| |
by: Mason Barge |
last post by:
I'm learning how to build a website. So far I've gotten pretty good
with HTML, CSS, and Paint Shop Pro, and I'm currenly learning the
basics of Javascript.
I'm hoping, eventually, to build and run an online publication that
will change content daily and have extensive archived articles,
cross-referenced by subject area(s).
What other...
|
by: cjl |
last post by:
PHPers:
I am a total beginner, so please excuse my very simple question.
I have been playing with PHP on Windows XP, and mostly using Notepad2
(http://www.flos-freeware.ch/notepad2.html) for editing. It has syntax
highlighting, which is all I thought I needed.
I decided to learn the Qcodo framework (http://www.qcodo.com/). In the...
|
by: Jack B |
last post by:
I'm using Access 2002 to create a database for a small opera company that my
wife is involved in, and I'm more than a bit rusty because I haven't created
a new Access database since about 1999. So, I will probably have quite a
few questions as I go through this, and hopefully this group will help me
out.
I will be creating this database...
|
by: a |
last post by:
Dear all vb.net developer
I want to know the time I need to master vb.net?
I'm beginner
|
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...
|
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...
| |
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. ...
|
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...
|
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...
|
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...
|
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...
|
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...
| |
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
| |