
else
{
var xmlDoc = makeXML();
xml.async = false;
// passes an XML string to the parser
xml.loadXML(xmlDoc);
form.output.value = xml.transformNode(xslt.XMLDocument);
}
}
Unfortunately, the DOM standard does not specify how to apply an XSLT
style sheet to a document. Again, you can use a browser-specific extension.
For Internet Explorer, the XSL processor is called by the
transformNode()
method.
The XSLT style sheet was loaded in a separate XML island.
<xml id=”xml”></xml>
<xml id=”xslt” src=”convert.xsl”></xml>
Which Structure for the Document?
If your application supports several DTDs, you may wonder which one to
use as the default DTD. Experience shows that ...