This tag converts an XML file to HTML and inserts the resulting code in the page. The conversion is done by merging the XML with an XSLT file. Both, the XML and XSL are retrieved asynchronously.
The tag makes use of inner functions available in IE and Firefox and compatibility with other browsers has not been tested. It has been tested with Firefox 2, IE 7 and Opera 9.
Attribute name | Description | Default | Required | Valid values |
shootersSelector | String used to select the elements that will fire the transformation. If not set, the transformation will be performed when the page is loaded. | false | CSS selector expressions (i.e. div#menubar, .button). You may check MochiKit for further information. | |
targetId | Identifier of the element the result of the transformation will be inserted in. | true | ||
event | Event name on which the transformation will be fired. | true | event name (i.e. onclick, onmouseover). | |
xmlUrl | Url the XML data will be retrieved from. | true | ||
xslUrl | Url the XSL StyleSheet will be retrieved from. | true | ||
nameValuePairs | It contains a ',' separated object of pairs name:value. i.e. {name1:'value1',name2:56}. These parameters will be added, with the value given here, to the XML request. |
false | ||
formNames | If this attribute is set (',' separated array of values), all the parameters of each form named in the attribute value (identified by the name provided here) will be sent with every XML request. | false | i.e. ['name1'] would take all of the parameters included in the form identified by name1 and send them to the xmlUrl as paramName=paramValue pairs. | |
params | If this attribute is set (',' separated array of names), the value of every parameter included in its value (identified by the its id provided here) will be sent with every XML request. | false | i.e. ['param1','param2'] would add param1 and param2 to the xmlUrl request as param1=param1Value and param2=param2Value. |
Note: all of the attributes accept runtime expressions.