You are here: Re: [PHP] Simple CopyOf XSLT translation « PHP « IT news, forums, messages
Re: [PHP] Simple CopyOf XSLT translation

Posted by Torgny Bjers on 11/02/05 12:51

Quoting Andy Pieters <mailings@vlaamse-kern.com>:

> Hi list
>
> I made an entire site in xhtml for a client but now complaints are comming
> from the m$ explorer front. Broken layouts, long loading times etc.
>
> Would it be possible for php to do the xslt translation?
>
> All that is currently in my xslt is
>
> <stylesheet>
> <template match="/">
> <copy-of select="." />
> </template>
> </stylesheet>
>
> And serve those pages as html 4.01 instead of xhtml on internet explorer?
>
> With kind regards
>
>
> Andy

Hello Andy,

If you are using PHP 5, look at the XSL module, otherwise you'll have to use
XSLT and Sablotron. Check out the manual http://www.php.net/manual/en/
for more
information on these. I suggest using Tidy if possible to convert from
XHTML to
HTML 4.0.1, this is the easiest way to convert/clean markup without having to
do all the hard work yourself.

It seems to me that with your very small xslt file, you could skip
using xslt in
general? Or maybe you did it that way to pave way for future additions
with more
advanced XSLT function usage?

Regards,
Torgny

 

Navigation:

[Reply to this 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

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