Changes for page Engine_XalanJ

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

From version Icon 33.1 Icon
edited by Nicolas Gregoire
on 2012/01/11 22:54
Change comment: There is no comment for this version
To version Icon 31.1 Icon
edited by Nicolas Gregoire
on 2012/01/11 22:47
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -27,20 +27,21 @@
27 27  
28 28  == Java environment disclosure ==
29 29  
30 -The checkEnvironment() extension function (documented [[here>>http://xml.apache.org/xalan-j/faq.html#faq-N10064||rel="__blank"]]) will display some information about the execution context (packages, paths, versions, ...).
30 +The checkEnvironment() extension function (documented [[here>>http://xml.apache.org/xalan-j/faq.html#faq-N10064||rel="__blank"]]), associated to the Xalan namespace, will display some information about the execution context (packages, paths, versions, ...). The output of the execution of [[xalanj-checkenv.xsl>>attach:xalanj-checkenv.xsl]] is [[attached>>attach:xalanj-checkenv-output.txt]].
31 31  
32 -|=Namespace|=Extension function|=PoC|=Sample output
33 -|http:~/~/xml.apache.org/xalan|checkEnvironment()|[[xalanj-checkenv.xsl>>attach:xalanj-checkenv.xsl]]|[[xalanj-checkenv-output.txt>>attach:xalanj-checkenv-output.txt]]
34 34  
35 -== Java code execution ==
33 +~|=Namespace|=Extension function|=PoC|=Sample output
34 +~|http:~~/~~/xml.apache.org/xalan/java/java.util.Date|new|~[~[xalanj-java-date.xsl>>attach~:xalanj-java-date.xsl]]|~[~[xalanj-java-date-output.txt>>attach:xalanj-java-date-output.txt]]~\~\
36 36  
37 -The attached code will display the current date using a newly created "java.util.Date" object. This should be enough to demonstrate Java code execution.
38 38  
37 +XX
39 39  
40 -|=Namespace|=Extension function|=PoC|=Sample output
41 -|http:~/~/xml.apache.org/xalan/java/java.util.Date|new|[[xalanj-java-date.xsl>>attach:xalanj-java-date.xsl]]|Current date: Wed Jan 11 22:45:07 CET 2012
39 +== Java code execution ==
42 42  
41 +The following code will display the current date :
43 43  
43 +TODO
44 +
44 44  == Execution of external commands ==
45 45  
46 46  The following code will execute the command "touch /tmp/hello" :