Search completed in 1.37 seconds.
5 results for "removeparameter":
nsIXSLTProcessor
cument-transformer;1?type=xslt. To create an instance, use: var xsltProcessor = Components.classes["@mozilla.org/document-transformer;1?type=xslt"] .createInstance(Components.interfaces.nsIXSLTProcessor); Method overview void clearParameters(); nsIVariant getParameter(in DOMString namespaceURI, in DOMString localName); void importStylesheet(in nsIDOMNode style); void
removeParameter(in DOMString namespaceURI, in DOMString localName); void reset(); void setParameter(in DOMString namespaceURI, in DOMString localName, in nsIVariant value); nsIDOMDocument transformToDocument(in nsIDOMNode source); nsIDOMDocumentFragment transformToFragment(in nsIDOMNode source, in nsIDOMDocument output); Methods clearParameters() Removes all set parameters from this nsIXSLTProcessor. ...
...Processor for transformations. void importStylesheet( in nsIDOMNode style ); Parameters style The root-node of a XSLT stylesheet. This can be either a document node or an element node. If a document node then the document can contain either a XSLT stylesheet or a LRE stylesheet. If the argument is an element node it must be the xsl:stylesheet (or xsl:transform) element of an XSLT stylesheet.
removeParameter() Removes a parameter, if set. This will make the processor use the default-value for the parameter as specified in the stylesheet. void
removeParameter( in DOMString namespaceURI, in DOMString localName ); Parameters namespaceURI The namespaceURI of the XSLT parameter. localName The local name of the XSLT parameter. reset() Remove all parameters and stylesheets from this nsIXSLTProcessor.
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
source by applying the stylesheet imported using the importStylesheet method and returns a standalone DOM document. void setParameter(String namespaceURI, String localName, Variant value) Sets a parameter in the imported XSLT stylesheet. Variant getParameter(String namespaceURI, String localName) Gets the value of a parameter in the imported XSLT stylesheet. void
removeParameter(String namespaceURI, String localName) Removes all set parameters from the imported XSLT stylesheet and makes them default to the XSLT-defined defaults. void clearParameters() Removes all set parameters and sets them to defaults specified in the XSLT stylesheet. void reset() Removes all parameters and stylesheets. Original Document Information Author(s): Doro...
XSLTProcessor - Web APIs
ets a parameter in the XSLT stylesheet that was imported. (Sets the value of an <xsl:param>.) A null value for namespaceURI is treated the same as an empty string. [Throws] any XSLTProcessor.getParameter(String namespaceURI, String localName) Gets the value of a parameter from the XSLT stylesheet. A null value for namespaceURI is treated the same as an empty string. [Throws] void XSLTProcessor.
removeParameter(String namespaceURI, String localName) Removes the parameter if it was previously set. This will make the XSLTProcessor use the default value for the parameter as specified in the stylesheet. A null value for namespaceURI is treated the same as an empty string. void XSLTProcessor.clearParameters() Removes all set parameters from the XSLTProcessor. The XSLTProcessor will then use the defaults s...
Using the Mozilla JavaScript interface to XSL Transformations - XSLT: Extensible Stylesheet Language Transformations
reat the nodes as if they are in the null namespace, however this is not very well tested so it might not work in all situations. It is also possible that this will change in a future release. Transforming XHTML should work as expected though. Setting parameters You can control parameters for the stylesheet using the XSLTProcessor.setParameter(), XSLTProcessor.getParameter(), and XSLTProcessor.
removeParameter() methods. These all take a namespace URI and a local name as the first two parameters, with XSLTProcessor.setParameter() taking a third - the value of the parameter to be set. See The XSLT/JavaScript Interface in Gecko for an example. Resetting The XSLTProcessor object also implements a XSLTProcessor.reset() method, which can be used to remove all stylesheets and parameters then put the proces...
Setting Parameters - XSLT: Extensible Stylesheet Language Transformations
le, JavaScript and XSLT could be used to sort XML data and then display it. The sorting would have to alternate between ascending and descending sorting. XSLT provides the xsl:param element, which is a child of the xsl:stylesheet element. XSLTProcessor provides three JavaScript methods to interact with these parameters: XSLTProcessor.setParameter(), XSLTProcessor.getParameter() and XSLTProcessor.
removeParameter(). They all take as the first argument the namespace URI of the xsl:param (Usually the param will fall in the default namespace, so passing in null will suffice.) The local name of the xsl:param is the second argument. setParameter requires a third argument - namely the value to which the parameter will be set. Figure 7 : Parameters /* XSLT: <xsl:param name="myOrder" /> */ // JavaScript: va...