Changes for page Engine_XalanJ
on 2012/01/05 00:59
on 2012/01/05 01:09
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -18,22 +18,47 @@ 18 18 * Java properties 19 19 * CheckEnv() 20 20 21 +== CheckEnv() == 22 + 23 +The following code will display some information about the execution context : 24 + 25 +[[checkenv.xsl>>attach:checkenv.xsl]] 26 + 27 +TODO 28 + 29 +<?xml version="1.0"?> 30 +<xsl:stylesheet xmlns:xsl="http:~/~/www.w3.org/1999/XSL/Transform" 31 + xmlns:xalan="http:~/~/xml.apache.org/xalan" 32 + exclude-result-prefixes="xalan" 33 + version="1.0"> 34 + 35 + 36 + <xsl:output indent="yes"/> 37 + <xsl:template match="/"> 38 + <xsl:copy-of select="xalan:checkEnvironment()"/> 39 + </xsl:template> 40 +\\</xsl:stylesheet> 41 + 21 21 == Java code execution == 22 22 23 - dcdcdd44 +The following code will display the current date : 24 24 46 +TODO 47 + 48 +== Execution of external commands == 49 + 50 +The following code will execute the command "touch /tmp/hello" : 51 + 25 25 <?xml version="1.0"?> 26 26 <xsl:stylesheet xmlns:xsl="http:~/~/www.w3.org/1999/XSL/Transform" 27 - xmlns:j="http:~/~/xml.apache.org/xalan/java" 28 - exclude-result-prefixes="j" 29 - version="1.0"> 30 - <xsl:template match="/"> 31 - <xsl:variable name="c"><![CDATA[touch = /tmp/hello]]></xsl:variable> 32 - <xsl:variable name="a" select="j:split($c, ' = ')"/> 33 - <xsl:variable name="r" select="j:java.lang.Runtime.getRuntime()"/> 34 - <xsl:variable name="p" select="j:exec($r, $a )"/> 35 - No content at the moment ... 36 - </xsl:template> 54 + xmlns:j="http:~/~/xml.apache.org/xalan/java" 55 + exclude-result-prefixes="j" 56 + version="1.0"> 57 + <xsl:template match="/"> 58 + <xsl:variable name="c"><![CDATA[touch = /tmp/hello]]></xsl:variable> 59 + <xsl:variable name="a" select="j:split($c, ' = ')"/> 60 + <xsl:variable name="r" select="j:java.lang.Runtime.getRuntime()"/> 61 + <xsl:variable name="p" select="j:exec($r, $a )"/> 62 + No content at the moment ... 63 + </xsl:template> 37 37 </xsl:stylesheet> 38 - 39 -Saxon
- checkenv.xsl
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +xwiki:XWiki.NicolasGregoire - Size
-
... ... @@ -1,0 +1,1 @@ 1 +324 bytes - Content
-
... ... @@ -1,0 +1,14 @@ 1 +<?xml version="1.0"?> 2 + 3 +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 + xmlns:xalan="http://xml.apache.org/xalan" 5 + exclude-result-prefixes="xalan" 6 + version="1.0"> 7 + 8 + <xsl:output indent="yes"/> 9 + <xsl:template match="/"> 10 + <xsl:copy-of select="xalan:checkEnvironment()"/> 11 + </xsl:template> 12 + 13 +</xsl:stylesheet> 14 +