Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
06-18-2002, 02:07 PM #1
- Join Date
- Jun 2002
- Winona, MN - The land of 10,000 lakes
- Thanked 45 Times in 42 Posts
using xml to create both html and wml
How would I use XML to create a html doc if the request comes from an internet browser, and a wml doc if the request comes from a cell phone browser. I know how to write the xsl sheet, but don't I need to assign a different sheet depending on the request type? Wouldn't that need 2 style sheet calls in one xml doc? Or is this done on the server, in php/perl/asp where the server determines the request and then associates the correct stylesheet for output?
06-18-2002, 06:46 PM #2
What I did for a mini-project was use some PHP:
<?xml-stylesheet type="text/xml" href="<?php echo appropriate stylesheet depending on user-agent?>"?>
<!-- bla -->
I believe DevShed may have an article about doing exactly the same.