[an error occurred while processing this directive]

Handling transformation output

                   

Handling transformation output

After passing xml and xsl sheets , we need to handle output ,after transformation, like this :

$('#output').xslt({xmlUrl: 'xslt-test.xml', xslUrl: 'xslt-test.xsl'});

Here, 'output' is the ' div ' element with padding of 2 pixels , the output window is defined in the html as  :

Output:<br />
<div style="height: 150px; border: 1px solid #000000; overflow: scroll;">
<div id="output" style="padding: 2px;">

When  the ' .xslt ' method transforms the xml/xsl , it sets output in the div element 'output'.

For detail of the other methods used in the plugin , click here .

Learn from experts! Attend jQuery Training classes.

                  

[an error occurred while processing this directive]