[Home] [By Thread] [By Date] [Recent Entries]
M. David Peterson wrote:
Hey Robert, Dojo is pretty cool :) Docs kinda [expletive deleted]. The dojo.xml.XslTransform class is in: dojo/src/xml. Be sure to check out dojo/tests/xml/test_XslTransform.html for some different uses. Basically, the public API (I am open to change or extend it to make it more useful) looks like: dojo.xml.XslTransform = function(/*String*/ xsltUri) { /* Common params: xmlDoc - the primary XML source params - a 2 dim array, e.g. [[name, value]] which is cleared after each transform parentDoc - the window.document that is the parent of the result */ this.getResultString = function(/*XMLDOcument*/ xmlDoc, /*2 Dimensional Array*/params, /*HTMLDocument*/parentDoc) /* contentPane - dojo specific layout region to put the result into (instatiates child widgets) */ this.transformToContentPane = function(/*XMLDOcument*/ xmlDoc, /*2 Dimensional Array*/params, /*ContentPane*/contentPane, /*HTMLDocument*/parentDoc); /* region - some HTML element to put the result into */ this.transformToRegion = function(/*XMLDOcument*/ xmlDoc, /*2 Dimensional Array*/params, /*HTMLElement*/region, /*HTMLDocument*/parentDoc); this.transformToDocument = function(/*XMLDOcument*/ xmlDoc, /*2 Dimensional Array*/params); this.transformToWindow = function(/*XMLDOcument*/ xmlDoc, /*2 Dimensional Array*/params, /*HTMLDocument*/windowDoc, /*HTMLDocument*/parentDoc); } best, -Rob
|

Cart



