Re: [PHP] Simple CopyOf XSLT translation

2005-11-02 Thread Stephen Leaf
Last I checked XHTML *is* HTML only with my stricter rules applied. most 
notably the XML rules.
"XHTML is a stricter and cleaner version of HTML." -- W3C XHTML tutorial. 
(http://www.w3schools.com/xhtml/default.asp)

As for using PHP to transform the XSL. I've been doing this with a lot of 
success for around a year.
All my php scripts do anymore is generate the XML needed to be stylized by the 
XSL. which of course is done prior to being echo'd

I found this site to be very useful while learning XSL.
http://www.w3schools.com/xsl/xsl_w3celementref.asp

Keep in mind tho a lot of the XPath functions are still not implemented in 
PHP. you will have to implement these in PHP and then tell PHP's XSL 
transformer to use PHP functions.

On Wednesday 02 November 2005 04:42 am, Andy Pieters wrote:
> 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
>
> 
> 
>  
> 
> 
>
> And serve those pages as html 4.01 instead of xhtml on internet explorer?
>
> With kind regards
>
>
> Andy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Simple CopyOf XSLT translation

2005-11-02 Thread Jochem Maas

Torgny Bjers wrote:

Quoting Andy Pieters <[EMAIL PROTECTED]>:


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.


good for them for complaining, getting paid to build websites and then not
test them on the most widely used browser is extremely arrogant - I assume
your a firefox bigot :-) (just like me).



Would it be possible for php to do the xslt translation?


by all means, but its like using a sledgehammer to crack a walnut.
nothing in IE stops it from rendering XHTML. given the use of XHTML you
should be using CSS to style the page ... its your CSS that need addressing
(and possibly the XHTML is not _completely_ valid)

IHMO (x)HTML without a css file (or inline 

Re: [PHP] Simple CopyOf XSLT translation

2005-11-02 Thread Torgny Bjers

Quoting Andy Pieters <[EMAIL PROTECTED]>:


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







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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Simple CopyOf XSLT translation

2005-11-02 Thread Andy Pieters
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 



 



And serve those pages as html 4.01 instead of xhtml on internet explorer?

With kind regards


Andy

-- 
Now listening to Top! Radio Live www.topradio.be/stream on amaroK
Geek code: www.vlaamse-kern.com/geek
Registered Linux User No 379093
If life was for sale, what would be its price?
www.vlaamse-kern.com/sas/ for free php utilities
--


pgpnhq6q8XcqY.pgp
Description: PGP signature