Jump to content


outputting xml from php using html namespace

  • Please log in to reply
No replies to this topic

#1 TomCat

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 23 September 2006 - 02:49 PM


I'm hoping someone can help me out.
(example using php 5.1.4 and firefox

I am creating an xml document on the fly and trying to output it in a browser using xsltprocessor

The output is:
<?xml version="1.0"?>
<h:html xmlns:h="http://www.w3.org/1999/xhtml">

<h:table width="100%" border="2">
<h:tr bgcolor="silver" id="table_head">
<h:tr id="table_body">
<h:td>Loxley type of user</h:td>
<h:tr id="table_body">
<h:td>System administrator</h:td>

which is just what I wanted

The problem is when it is echoed to the browser I just get a string of text.

If i copy the source into either a .xml or .xhtml file it works but only in firefox not in i.e.

Can anyone please help me - am i missing something?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users