Reply to Re: Using browser XSLT transformations

Your name:

Reply:


Posted by Juan Jos Gutirrez de Quevedo Prez on 04/10/06 22:11

El 10 Apr 2006 10:33:03 -0700
theoryboy@my-deja.com escribió:

> I'm not sure if this is the right group for this question. It seems to
> span a few topics.
>
> I have a PHP page that generates XML output. I want to push this
> output through a stylesheet transformation and display this to the
> user. I know the transformation is sound because if I save the output
> as a .xml file it renders fine. However, the PHP page is displayed as
> raw text without even line breaks. I suspect that because the
> extension for the page is .php the browser does not know to treat it
> as XML and apply the stylesheet. Is it possible to force the browser
> to do this?

you have to generate the header to change the default mime-type to
application/xml

header('Content-type: application/xml; charset=utf-8 ');



--
Juan José Gutiérrez de Quevedo
Director Técnico (juanjo@iteisa.com)
ITEISA (http://www.iteisa.com)
942544036 - 637447953

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация