Changes for page Engine_tDOM

Last modified by Nicolas Gregoire on 2012/01/14 17:00

From version Icon 8.1 Icon
edited by Nicolas Gregoire
on 2012/01/14 17:59
Change comment: There is no comment for this version
To version Icon 10.1
edited by Nicolas Gregoire
on 2012/01/14 17:00
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -10,7 +10,7 @@
10 10  
11 11  = Command line =
12 12  
13 -Start 'tclsh' and paste the script :
13 +Start 'tclsh' and paste the attached [[tdom-system-property.tcl>>attach:tdom-system-property.tcl]] script.
14 14  
15 15  = Identification strings =
16 16  
Icon tdom-system-property.tcl
Author
... ... @@ -1,0 +1,1 @@
1 +xwiki:XWiki.NicolasGregoire
Size
... ... @@ -1,0 +1,1 @@
1 +487 bytes
Content
... ... @@ -1,0 +1,17 @@
1 +package require tdom
2 +
3 +set xml [dom parse {<recon/>}]
4 +set xsl [dom parse {<xsl:stylesheet
5 + version="1.0"
6 + xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
7 +<xsl:output method="text"/>
8 +<xsl:template match="/">
9 +Version : <xsl:value-of select="system-property('xsl:version')" />
10 +Vendor : <xsl:value-of select="system-property('xsl:vendor')" />
11 +Vendor URL : <xsl:value-of select="system-property('xsl:vendor-url')" />
12 +</xsl:template>
13 +</xsl:stylesheet>}]
14 +$xml xslt $xsl result
15 +$result asText
16 +
17 +