ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error
|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: using the mozilla xsl rendering engine
Near as I can figure it, some builds may mistakenly use the obsolete XSLTProcessor interface instead of the newer one. I've got Mozilla 1.2b, which *should* use the newer interfaces, but doesn't.
You can add variables and parameters to a stylesheet DOM using Javascript. If, for instance,
parameters = { foreground: "#FF0000", background: "#00FF00" };for ( pname in parameters ) { var p = stylesheet.createElementNS("http://www.w3.org/1999/XSL/Transform","variable"); p.setAttribute("name", pname); p.appendChild(stylesheet.createTextNode( parameters[pname] )); stylesheet.childNodes[1].insertBefore( p , stylesheet.childNodes[1].firstChild ); } This is sloppy, but I hope you get the idea. It doesn't check to see if there are any variables by the same name already defined in the stylesheet. (If they aren't already defined and you don't add them, it is an error which Transformix doesn't pick up on.) Also, childNodes[0] of the stylesheet is a text fragment; I don't know why or whether this is documented, but it doesn't seem right. It is probably whitespace. juggy@xxxxxxx wrote: Hi Jarno, XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








