Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Index

Found 50 pages:

# Page Tags and summary
1 XSLT XSLT
Editorial review completed.
2 Common XSLT Errors XSLT
Your server needs to send both the source and the stylesheet with a XML mime type, text/xml or application/xml. To find out the current type, load the file in Mozilla and look at the page info. Or use a download tool, those usually tell the mime type.
3 Elements XSLT, XSLT_Reference
On a related note, any attribute in an LRE and some attributes of a limited number of XSLT elements can also include what is known as an attribute value template. An attribute value template is simply a string that includes an embedded XPath expression which is used to specify the value of an attribute. At run-time the expression is evaluated and the result of the evaluation is substituted for the XPath expression. For example, assume that a variable "image-dir" is defined as follows:
4 Index Index, Reference, Référence, XSLT
Found 50 pages:
5 PI Parameters XSLT
No summary!
6 The XSLT/JavaScript Interface in Gecko XSLT
No summary!
7 Advanced Example XSLT
The advanced example will sort several divs based on their content. The example allows to sort the content multiple times, alternating between ascending and descending sorting. The JavaScript only loads the .xsl file the first time, and sets the xslloaded variable to true once it has finished loading the file. Using the XSLTProcessor.getParameter() method, the code can figure wether to sort by ascending or descending. It defaults to ascending if the parameter is empty (first time the sorting happens, as there is no value for it in the XSLT file). The sorting value is set using XSLTProcessor.setParameter().
8 Basic Example XSLT
The basic example will load an XML file and apply a XSL transformation on it. These are the same files used in the Generating HTML example in the XSLT in Netscape Gecko article. The XML file describes an article and the XSL file formats the information for display.
9 Interface List
See XSLTProcessor in the Web API documentation section.
10 Introduction
With modern browsers supporting XSLT, developers can now use JavaScript to access the power that XSLT provides. JavaScript can enable a web application to load XML data, process it via XSLT into a presentable form and then add it into an existing document. Since the XML data loaded only contains the raw information without any presentation data, it can load quickly even on dialup.
11 JavaScript/XSLT Bindings
JavaScript can run XSLT transformations through the XSLTProcessor object. Once instantiated, an XSLTProcessor has an XSLTProcessor.importStylesheet() method that takes as an argument the XSLT stylesheet to be used in the transformation. The stylesheet has to be passed in as an XML document, which means that the .xsl file has to be loaded by the page before calling XSLTProcessor.importStylesheet(). This can be done via XMLHttpRequest or XMLDocument.load().
12 Resources XSLT
No summary!
13 Setting Parameters XSLT
While running transformations using precoded .xsl and .xml files is quite useful, configuring the .xsl file from JavaScript may be even more useful. For example, 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.
14 Using the Mozilla JavaScript interface to XSL Transformations XSLT
Ce document décrit l'interface JavaScript dans Mozilla 1.2 ainsi que le moteur de tranformation XSLT (TransforMiiX).
15 apply-imports XSLT, XSLT_Reference
No summary!
16 apply-templates XSLT, XSLT_Reference
No summary!
17 attribute XSLT, XSLT_Reference
The <xsl:attribute> element creates an attribute in the output document, using any values that can be accessed from the stylesheet. The element must be defined before any other output document element inside the output document element for which it establishes attribute values. But it may be after or inside elements that won't be part of the output (like <xsl:choose> or <xsl:apply-templates> etc.).
18 attribute-set XSLT, XSLT_Reference
No summary!
19 call-template XSLT, XSLT_Reference
No summary!
20 choose XSLT, XSLT_Reference
No summary!
21 comment XSLT, XSLT_Reference
No summary!
22 copy XSLT, XSLT_Reference
No summary!
23 copy-of XSLT, XSLT_Reference
No summary!
24 decimal-format XSLT, XSLT_Reference
No summary!
25 element XSLT, XSLT_Reference
No summary!
26 fallback XSLT, XSLT_Reference
No summary!
27 for-each XSLT, XSLT_Reference
No summary!
28 if XSLT, XSLT_Reference
No summary!
29 import XSLT, XSLT_Reference
No summary!
30 include XSLT, XSLT_Reference
No summary!
31 key XSLT, XSLT_Reference
No summary!
32 message XSLT, XSLT_Reference
No summary!
33 namespace-alias XSLT, XSLT_Reference
No summary!
34 number XSLT, XSLT_Reference
No summary!
35 otherwise XSLT, XSLT_Reference
No summary!
36 output XSLT, XSLT_Reference
No summary!
37 param XSLT, XSLT_Reference
No summary!
38 preserve-space XSLT, XSLT_Reference
No summary!
39 processing-instruction XSLT, XSLT_Reference
No summary!
40 regexp
No summary!
41 sort XSLT, XSLT_Reference
No summary!
42 strip-space XSLT, XSLT_Reference
No summary!
43 stylesheet XSLT, XSLT_Reference
No summary!
44 template XSLT, XSLT_Reference
No summary!
45 text XSLT, XSLT_Reference
No summary!
46 transform XSLT, XSLT_Reference
The <xsl:transform> element is exactly equivalent to the <xsl:stylesheet> element.
47 value-of XSLT, XSLT_Reference
No summary!
48 variable XSLT, XSLT_Reference
No summary!
49 when XSLT, XSLT_Reference
No summary!
50 with-param XSLT, XSLT_Reference
No summary!

Document Tags and Contributors

 Contributors to this page: Fredchat, fscholz
 Last updated by: Fredchat,