473,385 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Hello, [XML] Is there something to change?

Hi,

I'm a newbie in XML/XSLT trying to get some HTML output from a simple
XML source that starts with:

QUOTE:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="letter2text.xsl" version="1.0"?>
/QUOTE

I ran phpinfo();
Here is what I gathered:
QUOTE:
libxml
libXML support active
libXML Version 2.6.22
libXML streams enabled

SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.10 $
Schema support enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.22
xmlreader
XMLReader enabled
xmlwriter
XMLWriter enabled

/QUOTE

The problem is that I keep seeing the XML source in IE6, not the
formatted data.

Your help much appreciated

Jun 23 '06 #1
5 1254
On Fri, 23 Jun 2006 13:59:51 -0700, universalbitmapper wrote:
QUOTE:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="letter2text.xsl" version="1.0"?>
/QUOTE


Did you remember to send the XML header? That killed me for about two
hours last night.

header("Content-type: text/xml");

--
The USA Patriot Act is the most unpatriotic act in American history.
Feingold-Obama '08 - Because the Constitution isn't history,
It's the law.

Jun 23 '06 #2

Ivan Marsh wrote:
On Fri, 23 Jun 2006 13:59:51 -0700, universalbitmapper wrote:
QUOTE:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="letter2text.xsl" version="1.0"?>
/QUOTE


Did you remember to send the XML header? That killed me for about two
hours last night.

header("Content-type: text/xml");

--
The USA Patriot Act is the most unpatriotic act in American history.
Feingold-Obama '08 - Because the Constitution isn't history,
It's the law.


Hi,

When you write that I should send the XML header, you mean that I would
be
calling a .php source in IE6.
But not at all, I'm only trying the first sample code provided in a
manual,
that says that xslt makes the join between the xml source and html
output.
I'm utterly confused, but I don't dislike it.
It's going to be a lot of fun when I find (or most probably a generous
nethelper finds)
the error.
Maybe I should skip the beginner's stuff and zero in the php/xml
chapter;
actually the manual is called XML Web Development with PHP (Sitepoint)

thanks for your help

Jun 23 '06 #3

universalbitmapper wrote:
Ivan Marsh wrote:
On Fri, 23 Jun 2006 13:59:51 -0700, universalbitmapper wrote:
QUOTE:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="letter2text.xsl" version="1.0"?>
/QUOTE


Did you remember to send the XML header? That killed me for about two
hours last night.

header("Content-type: text/xml");

--
The USA Patriot Act is the most unpatriotic act in American history.
Feingold-Obama '08 - Because the Constitution isn't history,
It's the law.


Hi,

When you write that I should send the XML header, you mean that I would
be
calling a .php source in IE6.
But not at all, I'm only trying the first sample code provided in a
manual,
that says that xslt makes the join between the xml source and html
output.
I'm utterly confused, but I don't dislike it.
It's going to be a lot of fun when I find (or most probably a generous
nethelper finds)
the error.
Maybe I should skip the beginner's stuff and zero in the php/xml
chapter;
actually the manual is called XML Web Development with PHP (Sitepoint)

thanks for your help

Hi again,

Just like I said, I ran a php source with the line
..
..
$doc->load("keyword-data.xml");
..
..
And it works fine.
I'm going to write the ultimate "Bluff your way into XML/PHP" guide ;-)

Jun 23 '06 #4
There are two ways of transforming XML into HTML using an XSL stylesheet:
(a) on the server
(b) on the client (if your browser supports it)

If you visit http://www.tonymarston.net/sample/index.html you will see links
to my sample application which allow you to do both. You can then download
the source code to see how it's done.

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

"universalbitmapper" <jb*****@gmail.com> wrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
Hi,

I'm a newbie in XML/XSLT trying to get some HTML output from a simple
XML source that starts with:

QUOTE:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="letter2text.xsl" version="1.0"?>
/QUOTE

I ran phpinfo();
Here is what I gathered:
QUOTE:
libxml
libXML support active
libXML Version 2.6.22
libXML streams enabled

SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.10 $
Schema support enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.22
xmlreader
XMLReader enabled
xmlwriter
XMLWriter enabled

/QUOTE

The problem is that I keep seeing the XML source in IE6, not the
formatted data.

Your help much appreciated

Jun 24 '06 #5

Tony Marston wrote:
There are two ways of transforming XML into HTML using an XSL stylesheet:
(a) on the server
(b) on the client (if your browser supports it)

If you visit http://www.tonymarston.net/sample/index.html you will see links
to my sample application which allow you to do both. You can then download
the source code to see how it's done.

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

"universalbitmapper" <jb*****@gmail.com> wrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
Hi,

I'm a newbie in XML/XSLT trying to get some HTML output from a simple
XML source that starts with:

QUOTE:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="letter2text.xsl" version="1.0"?>
/QUOTE

I ran phpinfo();
Here is what I gathered:
QUOTE:
libxml
libXML support active
libXML Version 2.6.22
libXML streams enabled

SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.10 $
Schema support enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.22
xmlreader
XMLReader enabled
xmlwriter
XMLWriter enabled

/QUOTE

The problem is that I keep seeing the XML source in IE6, not the
formatted data.

Your help much appreciated


Many thanks Tony for providing the link to your demo site.
I filed it in the XML bookmarks,
At the moment I'm wrestling with htmlspecialchars() that don't work
I wonder if the trial Zend Studio Client and Server haven't messed up
my XP installation, because a lot of things don't work.
Thanks again

Jay Blue (the first task)

Jun 24 '06 #6

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

Similar topics

3
by: Sony Antony | last post by:
Hello: ( Please redirect me to the correct list if this is not where I m supposed to ask this question ) Our application essentially sends xml 'commands' to another system. These commands...
9
by: Vijai Kalyan | last post by:
Hello All, I have a few questions which you might seem irrelavant and/or foolish. I am asking anyway so I can find out. 1. Is XSL as powerful as a programming language such as Java in its...
2
by: Garry Freemyer | last post by:
I wrote a screensaver, via Visual Studio 2003 in C# and I decided a wiser choice for me was to use an xml file to save my configs. Btw: I wonder if this is why every bit of documentation I've found...
8
by: Jason Shohet | last post by:
I want to build a rules engine in a rules.xml page. I was thinking it would look like this: - Rules - rule1 if (0 < iTime <= .5) { iFee = 15; } - rule2 if (.5 < iTime <= 1) { iFee =...
6
by: Dan V. | last post by:
Is there a way to query a remote xml file periodically by not using web services? For Windows and Unix platforms. Is there a cheap software product that I can install on each client and my Windows...
11
by: Dorsa | last post by:
HI, Could you please tell me the error in here. I am trying to open an XML file from a link. Response.Clear() Response.Expires = 0 Response.BufferOutput = False Response.ContentType =...
6
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might suggest PHP, but I had a look at the PHP documentation...
3
by: =?Utf-8?B?QkM=?= | last post by:
Hello, I just created a Hello World webservice in VB2005 (this is my first webservice ever). I ran it in debug mode and the page that came up said Hello World and said to change the webservice...
9
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all On SQL Server tables I use SqlDataReader to query data like "SELECT * FROM table". Is there something similar for XML Files ? I want to use SQL Syntax like "SELECT * FROM table" on a...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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...

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.