Emma Moree
New member
I created an xsl style sheet. Now i want to view this in html format. Here is where im having troubles. I have gone for the javascript approach but it doesn't seem to be appearing!
<html><head><title>Hello</title>
</head>
<body>
script language="javascript">
var xmlDocument= new activeXObject("Microsoft.XMLDOM");
xmlDocument.load("cookery.xml");
document.write(xmlDocument.CATALOGUE.RECIPE.text);
</xml>
</script>
</body>
</html>
The xml document is called...cookery.xml
The xsl document is called....cookery.xsl
They both work fine.
Im not sure if i have to use javascript to view my finished xml file in html?
Try to explain simple, im new to this... many thanks
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="cookery.xsl" ?>
<CATALOGUE>
<RECIPE>
<TITLE>
<QUANTITY>
<TIME>
<ESSENTIALS>
<SECRET_INGREDIENTS>
<INSTRUCTIONS>
There the title etc...
<html><head><title>Hello</title>
</head>
<body>
script language="javascript">
var xmlDocument= new activeXObject("Microsoft.XMLDOM");
xmlDocument.load("cookery.xml");
document.write(xmlDocument.CATALOGUE.RECIPE.text);
</xml>
</script>
</body>
</html>
The xml document is called...cookery.xml
The xsl document is called....cookery.xsl
They both work fine.
Im not sure if i have to use javascript to view my finished xml file in html?
Try to explain simple, im new to this... many thanks
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="cookery.xsl" ?>
<CATALOGUE>
<RECIPE>
<TITLE>
<QUANTITY>
<TIME>
<ESSENTIALS>
<SECRET_INGREDIENTS>
<INSTRUCTIONS>
There the title etc...