Changes for page Reconnaissance

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

From version Icon 7.1 Icon
edited by Nicolas Gregoire
on 2012/01/15 00:20
Change comment: There is no comment for this version
To version Icon 17.1 Icon
edited by Nicolas Gregoire
on 2012/01/16 12:46
Change comment: Upload new attachment recon-enumerate-features.xml

Summary

Details

Icon Page properties
Content
... ... @@ -1,3 +1,7 @@
1 +{{toc/}}
2 +
3 += Using XSLT properties =
4 +
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 3  == XSLT 1.0 ==
... ... @@ -8,12 +8,10 @@
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 -{{code language="xml"}} <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:template match="/"> Version : <xsl:value-of select="system-property('xsl:version')" /> Vendor : <xsl:value-of select="system-property('xsl:vendor')" /> Vendor URL : <xsl:value-of select="system-property('xsl:vendor-url')" /> </xsl:template> </xsl:stylesheet> {{/code}}
15 +The attached stylesheet [[recon-xslt10.xsl>>attach:recon-xslt10.xsl]] fingerprints a XSLT 1.0 engine.
13 13  
14 14  == XSLT 2.0 ==
15 15  
16 -
17 17  This version supports some [[additional>>http://www.w3.org/TR/xslt20/#system-property||rel="__blank"]] properties :
18 18  
19 19  * xsl:product-name : a string containing the name of the implementation, as defined by the implementer
... ... @@ -24,13 +24,17 @@
24 24  
25 25   The attached stylesheet [[recon-xslt20.xsl>>attach:recon-xslt20.xsl]] fingerprints a XSLT 2.0 engine.
26 26  
27 -== Supported features ==
29 += Enumerating supported features =
28 28  
31 +== Needed functions ==
32 +
29 29  The XSLT standards define two additional functions used to enumerate the available features :
30 30  
31 31  * function-available()
32 32  * element-available()
33 33  
38 +== Example ==
39 +
34 34  This [[stylesheet>>http://www.xmlplease.com/element-function-available.xsl||rel="__blank"]] uses these functions to test the availability of :
35 35  
36 36  * XSLT and XPath functions
... ... @@ -41,5 +41,10 @@
41 41  
42 42  * EXSLT extensions
43 43  
50 +{{warning}}
51 +TODO : include my own examples !
52 +{{/warning}}
44 44  
45 -TODO : include my own example !
54 +== Live demo ==
55 +
56 +If you want to execute this stylesheet, just click on [[attach:toto]] (will crash Opera).
Icon recon-enumerate-features.xml
Author
... ... @@ -1,0 +1,1 @@
1 +xwiki:XWiki.NicolasGregoire
Size
... ... @@ -1,0 +1,1 @@
1 +108 bytes
Content
... ... @@ -1,0 +1,3 @@
1 +<?xml-stylesheet type="text/xsl" href="http://www.xmlplease.com/element-function-available.xsl" ?>
2 +<empty/>
3 +