<html><head><link rel=StyleSheet href='api-content.css' TYPE='text/css' MEDIA='screen'><title>.Conversions</title> <script> function navToEntry(entry) { window.location.href='api-' + entry + '.html'; } function navToGroup(group) { var f = parent.frames['toc-container']; if (!f) window.open ('sparse-toc.html#' + group, 'toc_container'); else { if (f.location.href.search('abc') != -1) f.location.href = 'sparse-toc.html#' + group; else f.location.hash = group; } } </script> </head><body bgcolor='white'> <!-- -- HEADS UP! This page was *GENERATED* by APIDOC, -- DO NOT EDIT THIS FILE BY HAND! -- See http://www.mozilla.org/projects/apidoc for information on APIDOC -- The original source file was jsdom-ref.xml --> <h1 class='title'>Sablotron Extensions API Reference</h1> <center><table class='api-entry' width='100%' cellspacing='0'border='1' cellpadding='10'> <tr><td class='entry-heading'> <table class='entry-heading-table' width='100%' cellpadding='5'cellspacing='0'><tr> <td class='entry-title' valign='center'><font size='+5'>Conversions</font></td> <td class='entry-type' align='center' width='25%'>.General</td> </tr></table> </td></tr> <tr><td class='entry-description'> <h4 class='entry-subhead'>Description</h4> The following function argument conversions are performed:<P><b>*</b> An XPath string object is mapped to an ECMAScript string value.<BR><b>*</b> An XPath number object is mapped to an ECMAScript number value.<BR><b>*</b> An XPath boolean object is mapped to an ECMAScript boolean value.<BR><b>*</b> An XPath node-set object is mapped to the ECMAScript binding for the DOM <code><a href='javascript:navToEntry("NodeList");'>NodeList</a></code>.<BR><b>*</b> An XSLT external object is mapped to the ECMAScript object that it wraps.<BR><P> The following conversions are performed on return values:<P><b>*</b> An ECMAScript string value or String object is mapped to an XPath string object.<BR><b>*</b> An ECMAScript number value or Number object is mapped to an XPath number object.<BR><b>*</b> An ECMAScript boolean value or Boolean object is mapped to an XPath boolean object.<BR><b>*</b> An ECMAScript object that is an instance of either <code><a href='javascript:navToEntry("Document");'>Document</a></code>, <code><a href='javascript:navToEntry("Node");'>Node</a></code>, <code><a href='javascript:navToEntry("NodeList");'>NodeList</a></code>, <code><a href='javascript:navToEntry("Attr");'>Attr</a></code>, <code><a href='javascript:navToEntry("Element");'>Element</a></code> or <code><a href='javascript:navToEntry("CharacterData");'>CharacterData</a></code> are mapped to an XPath node-set.<BR><b>*</b> The ECMAScript null value is mapped to an XSLT external object.<BR><b>*</b> The ECMAScript undefined value is mapped to an empty node-set.<BR><b>*</b> Any other ECMAScript object is mapped to an XSLT external object<BR><P> </td></tr> <tr><td class='entry-seealso'> <h4 class='entry-subhead'>See Also</h4> <table class='seealso-table'> <tr class='seealso-groups'><td>Groups</td> <td>[ <a href='javascript:navToGroup("GROUP_.General")'>.General</a> ]</td></tr> <tr class='seealso-internals'><td>Entries</td> <td>[ <a href='javascript:navToEntry("Attr");'>Attr</a> | <a href='javascript:navToEntry("CharacterData");'>CharacterData</a> | <a href='javascript:navToEntry("Document");'>Document</a> | <a href='javascript:navToEntry("Element");'>Element</a> | <a href='javascript:navToEntry("Node");'>Node</a> | <a href='javascript:navToEntry("NodeList");'>NodeList</a> ]</td></tr> </table> </td></tr> </table></center><br> © 2001-2002 Ginger Alliance<BR><i>revision 02-08-05</i><BR> <center>This page was generated by <a href='http://www.mozilla.org/projects/apidoc' target='other_window'><b>APIDOC</b></a></center> </body></html>