Forum Moderators: open

Message Too Old, No Replies

xml/xsl --> xhtml

server side xml to client side xhtml

         

mrnoisy

11:07 pm on Oct 16, 2004 (gmt 0)

10+ Year Member



I've got to convert a 500+ page html site to xml. I have no problem converting the files and styling them with an xsl file.

When viewed in a browser they look like perfect html but when I view source it's still in xml.

I need to convert the xml/xsl data on the server and send to the browser as xhtml, but I'm having no luck finding a way to do it.

The site is hosted on an apache virtual server and I don't have access to be able to modify it with add ons etc.

So what is the best way to do this conversion?

irnbru

9:53 pm on Oct 17, 2004 (gmt 0)

10+ Year Member



You could try PHP, server-side Java or CGI?

If the server has PHP try a phpinfo statement and look for xsl.

mrnoisy

10:37 pm on Oct 17, 2004 (gmt 0)

10+ Year Member



Thanks irnbru, good advice.

I've got Sablotron 1.0 installed on the server, now I need to find out how to use it. :^)

Just curious, why is it that xml isn't commonly used for web pages? It can be styled with css just like (x)html and you can make up whatever tags you like.

macrost

4:18 pm on Oct 19, 2004 (gmt 0)

10+ Year Member



mrnoisy,
One of the major reasons is that most browsers just can't handle a client-side transformation. I use xml quite often, but use a server side technology to send the result to the client.