web_sys/features/
gen_XsltProcessor.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XSLTProcessor , typescript_type = "XSLTProcessor")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `XsltProcessor` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"]
14    pub type XsltProcessor;
15    #[wasm_bindgen(catch, constructor, js_class = "XSLTProcessor")]
16    #[doc = "The `new XsltProcessor(..)` constructor, creating a new instance of `XsltProcessor`."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/XSLTProcessor)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"]
21    pub fn new() -> Result<XsltProcessor, JsValue>;
22    # [wasm_bindgen (method , structural , js_class = "XSLTProcessor" , js_name = clearParameters)]
23    #[doc = "The `clearParameters()` method."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/clearParameters)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"]
28    pub fn clear_parameters(this: &XsltProcessor);
29    #[cfg(feature = "Node")]
30    # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = importStylesheet)]
31    #[doc = "The `importStylesheet()` method."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/importStylesheet)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `Node`, `XsltProcessor`*"]
36    pub fn import_stylesheet(this: &XsltProcessor, style: &Node) -> Result<(), JsValue>;
37    # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = removeParameter)]
38    #[doc = "The `removeParameter()` method."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/removeParameter)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"]
43    pub fn remove_parameter(
44        this: &XsltProcessor,
45        namespace_uri: &str,
46        local_name: &str,
47    ) -> Result<(), JsValue>;
48    # [wasm_bindgen (method , structural , js_class = "XSLTProcessor" , js_name = reset)]
49    #[doc = "The `reset()` method."]
50    #[doc = ""]
51    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/reset)"]
52    #[doc = ""]
53    #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"]
54    pub fn reset(this: &XsltProcessor);
55    # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = setParameter)]
56    #[doc = "The `setParameter()` method."]
57    #[doc = ""]
58    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/setParameter)"]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"]
61    pub fn set_parameter(
62        this: &XsltProcessor,
63        namespace_uri: &str,
64        local_name: &str,
65        value: &::wasm_bindgen::JsValue,
66    ) -> Result<(), JsValue>;
67    #[cfg(all(feature = "Document", feature = "Node",))]
68    # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = transformToDocument)]
69    #[doc = "The `transformToDocument()` method."]
70    #[doc = ""]
71    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/transformToDocument)"]
72    #[doc = ""]
73    #[doc = "*This API requires the following crate features to be activated: `Document`, `Node`, `XsltProcessor`*"]
74    pub fn transform_to_document(this: &XsltProcessor, source: &Node) -> Result<Document, JsValue>;
75    #[cfg(all(feature = "Document", feature = "DocumentFragment", feature = "Node",))]
76    # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = transformToFragment)]
77    #[doc = "The `transformToFragment()` method."]
78    #[doc = ""]
79    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/transformToFragment)"]
80    #[doc = ""]
81    #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentFragment`, `Node`, `XsltProcessor`*"]
82    pub fn transform_to_fragment(
83        this: &XsltProcessor,
84        source: &Node,
85        output: &Document,
86    ) -> Result<DocumentFragment, JsValue>;
87}