Changes for page Reconnaissance
on 2012/01/15 00:23
on 2012/02/03 15:46
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- 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,19 +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"> 13 -<xsl:output method="text"/> 14 -<xsl:template match="/"> 15 -Version : <xsl:value-of select="system-property('xsl:version')" /> 16 -Vendor : <xsl:value-of select="system-property('xsl:vendor')" /> 17 -Vendor URL : <xsl:value-of select="system-property('xsl:vendor-url')" /> 18 -</xsl:template> 19 -</xsl:stylesheet>{{/code}} 15 +The attached stylesheet [[recon-xslt10.xsl>>attach:recon-xslt10.xsl]] fingerprints a XSLT 1.0 engine. 20 20 21 21 == XSLT 2.0 == 22 22 23 - 24 24 This version supports some [[additional>>http://www.w3.org/TR/xslt20/#system-property||rel="__blank"]] properties : 25 25 26 26 * xsl:product-name : a string containing the name of the implementation, as defined by the implementer ... ... @@ -31,15 +31,19 @@ 31 31 32 32 The attached stylesheet [[recon-xslt20.xsl>>attach:recon-xslt20.xsl]] fingerprints a XSLT 2.0 engine. 33 33 34 -= =Supported features ==29 += Enumerating supported features = 35 35 31 +== Needed functions == 32 + 36 36 The XSLT standards define two additional functions used to enumerate the available features : 37 37 38 38 * function-available() 39 39 * element-available() 40 40 41 - This[[stylesheet>>http://www.xmlplease.com/element-function-available.xsl||rel="__blank"]]uses these functions to test the availability of :38 +== Example == 42 42 40 +This [[stylesheet>>http://www.xmlplease.com/element-function-available.xsl||rel="__blank"]] (by "xmlplease.com") uses these functions to test the availability of : 41 + 43 43 * XSLT and XPath functions 44 44 45 45 * XSLT elements ... ... @@ -48,4 +48,14 @@ 48 48 49 49 * EXSLT extensions 50 50 51 -TODO : include my own example ! 50 +{{warning}} 51 +TODO : include my own examples ! 52 +{{/warning}} 53 + 54 +== Live demo == 55 + 56 +If you want to identify the XSLT engine used in your browser and its features, please click on [[attach:recon-enumerate-features.xml]]. 57 + 58 +{{warning}} 59 +This will crash Opera (bug DSK-355332) ! 60 +{{/warning}}
- recon-element-function-available.xsl
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +xwiki:XWiki.NicolasGregoire - Size
-
... ... @@ -1,0 +1,1 @@ 1 +78.4 KB - Content
- recon-enumerate-features.xml
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +xwiki:XWiki.NicolasGregoire - Size
-
... ... @@ -1,0 +1,1 @@ 1 +89 bytes - Content
-
... ... @@ -1,0 +1,3 @@ 1 +<?xml-stylesheet type="text/xsl" href="recon-element-function-available.xsl" ?> 2 +<empty/> 3 +