Changes for page Reconnaissance

Last modified by Nicolas Gregoire on 2012/02/03 14:52

From version Icon 4.1 Icon
edited by Nicolas Gregoire
on 2012/01/10 14:57
Change comment: There is no comment for this version
To version Icon 15.1 Icon
edited by Nicolas Gregoire
on 2012/01/16 12:42
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Tags
... ... @@ -1,0 +1,1 @@
1 +recon|fingerprint|system-property
Content
... ... @@ -1,6 +1,8 @@
1 +{{toc/}}
2 +
1 1  XSLT standards define several properties about the XSLT engine itself. Querying for these properties allows to easily identify the engine.
2 2  
3 -== XSLT 1.0 ==
5 += XSLT 1.0 =
4 4  
5 5  The function [[system-property()>>http://www.w3.org/TR/xslt#function-system-property||rel="__blank"]] supports by default the following properties :
6 6  
... ... @@ -10,9 +10,8 @@
10 10  
11 11  The attached stylesheet [[recon-xslt10.xsl>>attach:recon-xslt10.xsl]] fingerprints a XSLT 1.0 engine.
12 12  
13 -== XSLT 2.0 ==
15 += XSLT 2.0 =
14 14  
15 -
16 16  This version supports some [[additional>>http://www.w3.org/TR/xslt20/#system-property||rel="__blank"]] properties :
17 17  
18 18  * xsl:product-name : a string containing the name of the implementation, as defined by the implementer
... ... @@ -22,3 +22,32 @@
22 22  * xsl:supports-backwards-compatibility : returns "yes" if the XSLT processor offers this feature, or "no" otherwise
23 23  
24 24   The attached stylesheet [[recon-xslt20.xsl>>attach:recon-xslt20.xsl]] fingerprints a XSLT 2.0 engine.
26 +
27 += Enumerating supported features =
28 +
29 +== Needed functions ==
30 +
31 +The XSLT standards define two additional functions used to enumerate the available features :
32 +
33 +* function-available()
34 +* element-available()
35 +
36 +== Example ==
37 +
38 +This [[stylesheet>>http://www.xmlplease.com/element-function-available.xsl||rel="__blank"]] uses these functions to test the availability of :
39 +
40 +* XSLT and XPath functions
41 +
42 +* XSLT elements
43 +
44 +* Saxon extensions
45 +
46 +* EXSLT extensions
47 +
48 +{{warning}}
49 +TODO : include my own examples !
50 +{{/warning}}
51 +
52 +== Live demo ==
53 +
54 +If you want to execute this stylesheet, just click on [[attach:toto]] (will crash Opera).