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.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Handling transformation output
Post your Comment