Guest EricWhitehead Posted August 19, 2006 Share Posted August 19, 2006 HiI have written an XML recipe book. I have also written a web page to select a recipe and display it. It works great in IE but I cannot get it to work in ff!The XML file is like <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="recipebook.xsl"?><cookeryBook><recipe> <title>Beer Cheesecake</title> <ingredients> <Ingredient>.....</recipe> </cookeryBook> The relevent part of the web page is <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml.dtd"><html><head> <script type="text/javascript" >var xmlDoc=document.implementation.createDocument("","",null);xmlDoc.load("RecipeBook.xml");.....</script></head><body></body></html> As I said everything works fine in IE but, as far as I can tell, the xml file is not loaded in the ff version!Eric Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now