Skip to main content

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