Changes for page Reconnaissance

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

From version Icon 3.1 Icon
edited by Nicolas Gregoire
on 2012/01/10 14:55
Change comment: Upload new attachment recon-xslt20.xsl
To version Icon 13.1 Icon
edited by Nicolas Gregoire
on 2012/01/16 12:41
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,6 @@
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 ===
3 +== 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  
... ... @@ -8,6 +8,8 @@
8 8  * xsl:vendor : a string identifying the vendor of the XSLT processor
9 9  * xsl:vendor-url : a URL identifying the vendor of the XSLT processor (typically its Web site)
10 10  
11 +The attached stylesheet [[recon-xslt10.xsl>>attach:recon-xslt10.xsl]] fingerprints a XSLT 1.0 engine.
12 +
11 11  == XSLT 2.0 ==
12 12  
13 13  
... ... @@ -19,4 +19,35 @@
19 19  * xsl:supports-serialization : returns "yes" if the XSLT processor offers this feature, or "no" otherwise
20 20  * xsl:supports-backwards-compatibility : returns "yes" if the XSLT processor offers this feature, or "no" otherwise
21 21  
22 -
24 + The attached stylesheet [[recon-xslt20.xsl>>attach:recon-xslt20.xsl]] fingerprints a XSLT 2.0 engine.
25 +
26 += Enumerating supported features =
27 +
28 +== Needed functions ==
29 +
30 +The XSLT standards define two additional functions used to enumerate the available features :
31 +
32 +* function-available()
33 +* element-available()
34 +
35 +== Example ==
36 +
37 +
38 +
39 +This [[stylesheet>>http://www.xmlplease.com/element-function-available.xsl||rel="__blank"]] uses these functions to test the availability of :
40 +
41 +* XSLT and XPath functions
42 +
43 +* XSLT elements
44 +
45 +* Saxon extensions
46 +
47 +* EXSLT extensions
48 +
49 +{{warning}}
50 +TODO : include my own examples !
51 +{{/warning}}
52 +
53 +== Live demo ==
54 +
55 +If you want to execute this stylesheet, just click on [[attach:toto]] (will crash Opera).
Icon recon-xslt10.xsl
Author
... ... @@ -1,0 +1,1 @@
1 +xwiki:XWiki.NicolasGregoire
Size
... ... @@ -1,0 +1,1 @@
1 +372 bytes
Content
... ... @@ -1,0 +1,9 @@
1 +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2 +<xsl:output method="text"/>
3 +<xsl:template match="/">
4 +Version : <xsl:value-of select="system-property('xsl:version')" />
5 +Vendor : <xsl:value-of select="system-property('xsl:vendor')" />
6 +Vendor URL : <xsl:value-of select="system-property('xsl:vendor-url')" />
7 +</xsl:template>
8 +</xsl:stylesheet>
9 +