By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,067 Members | 1,818 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,067 IT Pros & Developers. It's quick & easy.

Hello, [XML] Is there something to change?

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a

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

P: n/a

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

P: n/a
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

P: n/a

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 discussion thread is closed

Replies have been disabled for this discussion.