Wiki source code of Reconnaissance

Version 6.2 by Nicolas Gregoire on 2012/01/14 17:34

Show last authors
1 XSLT standards define several properties about the XSLT engine itself. Querying for these properties allows to easily identify the engine.
2
3 == XSLT 1.0 ==
4
5 The function [[system-property()>>http://www.w3.org/TR/xslt#function-system-property||rel="__blank"]] supports by default the following properties :
6
7 * xsl:version : a number giving the version of XSLT implemented by the processor
8 * xsl:vendor : a string identifying the vendor of the XSLT processor
9 * xsl:vendor-url : a URL identifying the vendor of the XSLT processor (typically its Web site)
10
11 The attached stylesheet [[recon-xslt10.xsl>>attach:recon-xslt10.xsl]] fingerprints a XSLT 1.0 engine.
12
13 == XSLT 2.0 ==
14
15
16 This version supports some [[additional>>http://www.w3.org/TR/xslt20/#system-property||rel="__blank"]] properties :
17
18 * xsl:product-name : a string containing the name of the implementation, as defined by the implementer
19 * xsl:product-version : a string identifying the version of the implementation, as defined by the implementer
20 * xsl:is-schema-aware : returns "yes" if the XSLT processor is schema-aware, or "no" otherwise
21 * xsl:supports-serialization : returns "yes" if the XSLT processor offers this feature, or "no" otherwise
22 * xsl:supports-backwards-compatibility : returns "yes" if the XSLT processor offers this feature, or "no" otherwise
23
24 The attached stylesheet [[recon-xslt20.xsl>>attach:recon-xslt20.xsl]] fingerprints a XSLT 2.0 engine.
25
26 == Supported features ==
27
28 The XSLT standards define two additional functions used to enumerate the available features :
29
30 * function-available()
31 * element-available()
32
33 This [[stylesheet>>http://www.xmlplease.com/element-function-available.xsl||rel="__blank"]] uses these functions to test the availability of :
34
35 * XSLT and XPath functions
36
37 * XSLT elements
38
39 * Saxon extensions
40
41 * EXSLT extensions
42
43
44
45 TODO : include my own example !