Hi Martin:
Ok, I took the xml-xslt.nsf and 'tranlated' the outline style sheets to use lowercase (as outline xml is generated by Domino 6.x - outlineAlias?ReadEntries).
It works gret on IE.
To get a cross-browser solution (at least IE & Mozilla), I changed the xml tranformation using Activex to the JavaScript library Sarissa (from SourceForge.net).
Using Sarissa, it still works great in IE, but in Mozilla I get a transformation error:
Failed to transform document. (original exception: [Exception… "Node cannot be inserted at the specified point in the hierarchy" code: "3" nsresult: "0x80530003 (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)"
Don't know why and haven't been able to solve it: I feel I'm pretty close to the cross-browser solution!!!
For your information, here is the load_XML_XSLT function rewritten to use Sarissa in place of Activex:
/*
function load_XML_XSLT<br/>
sXML - (string) required url of where the xml is located<br/>
sXSL - (string) required url of where the xsl stylesheet is located<br/>
arParms - (associative array) optional, used to pass arguments to the xsl stylesheet<br/>
sId - (string) optional, the id of an element on the html page. If passed then the results of the transform are placed there,<br/>
if not passed then the results of the transform are returned as a string<br/>
*/
function load_XML_XSLT (sXML, sXSL, arrayParms, sId) {
//Uses the Sarissa javascript library from SourceForge<br/>
var sXMLSource = unescape(sXML);<br/>
var sXSLSource = unescape(sXSL);<br/>
<br/>
// get the source document<br/>
var xmlDoc= Sarissa.getDomDocument();<br/>
xmlDoc.async = false;<br/>
xmlDoc.load(sXMLSource);<br/>
// get the stylesheet document<br/>
var xslDoc= Sarissa.getDomDocument();<br/>
xslDoc.async = false;<br/>
xslDoc.load(sXSLSource);<br/>
// now let's add all the parms passed<br/>
var success;<br/>
var auxs;<br/>
<br/>
//success= Sarissa.setXslParameter(xslDoc, "idPrefix", "'outline'");<br/>
for (param in arrayParms) {<br/>
auxs= "'"+arrayParms[param]+"'";<br/>
success= Sarissa.setXslParameter(xslDoc, param, auxs);<br/>
if(success){<br/>
}else{<br/>
alert("Parameter NOT set: " + success);<br/>
}<br/>
}<br/>
// if an id was passed to this function use it, otherwise return the results of the transform<br/>
if ( typeof sId != "undefined") {<br/>
// transform and store the results to a string<br/>
var sOutput= xmlDoc.transformNode(xslDoc);<br/>
document.getElementById(sId).innerHTML = sOutput;<br/>
}else {<br/>
// transform and store the results to a string<br/>
var sOutput= xmlDoc.transformNode(xslDoc);<br/>
return(sOutput);<br/>
} <br/>
}//load_XML_XSLT
Any idea to make it work in Mozilla will be appreciated,
José Manuel RodrÃguez