Wiki source code of Engine_4Suite

Last modified by Nicolas Gregoire on 2012/01/23 12:24

Hide last authors
Nicolas Gregoire 8.1 1 {{toc/}}
Nicolas Gregoire 1.1 2
Nicolas Gregoire 8.1 3 = Introduction =
Nicolas Gregoire 1.1 4
Nicolas Gregoire 8.1 5 [[4Suite>>http://foursuite.sourceforge.net/||rel="__blank" title="4Suite Home Page"]] is a Python based XSLT engine by Fourthought Inc.
Nicolas Gregoire 1.1 6
Nicolas Gregoire 8.1 7 = Supported version =
Nicolas Gregoire 6.1 8
9 1.0
10
Nicolas Gregoire 8.1 11 = Command line =
Nicolas Gregoire 6.1 12
Nicolas Gregoire 5.1 13 $> 4xslt foo.xml foo.xsl
14
Nicolas Gregoire 8.1 15 = Identification strings =
Nicolas Gregoire 5.1 16
Nicolas Gregoire 7.1 17 |=xsl:vendor-url|http:~/~/4Suite.org
18 |=xsl:vendor|Fourthought Inc.
19 |=xsl:version|1
Nicolas Gregoire 1.1 20
Nicolas Gregoire 8.1 21 = Special features =
Nicolas Gregoire 1.1 22
Nicolas Gregoire 2.1 23 * File access (read and write)
Nicolas Gregoire 23.1 24 * Leak $CWD and paths to binaries
Nicolas Gregoire 8.1 25
26 = Reading files =
27
Nicolas Gregoire 17.1 28 |=Namespace|=Extension function|=Parameters|=PoC
Nicolas Gregoire 25.1 29 |http:~/~/xmlns.4suite.org/ext|doc-as-string()|file, encoding|[[4suite-doc-as-string.xsl>>attach:4suite-doc-as-string.xsl]]\\
Nicolas Gregoire 8.1 30
Nicolas Gregoire 21.1 31 This is documented [[here>>http://infinitesque.net/projects/4Suite/docs/extensions/XsltBuiltins.html#id1084806788||rel="_blank"]].
Nicolas Gregoire 19.1 32
Nicolas Gregoire 8.1 33 = Writing files =
34
Nicolas Gregoire 18.1 35 |=Namespace|=Extension element|=Parameters|=PoC
36 |http:~/~/exslt.org/common|document|href|[[4suite-exsl-document.xsl>>attach:4suite-exsl-document.xsl]]\\
Nicolas Gregoire 20.1 37
Nicolas Gregoire 22.1 38 This is documented [[here>>http://infinitesque.net/projects/4Suite/docs/modules/Ft.Xml.Xslt.Exslt.Common.html#DocumentElement||rel="_blank"]].
Nicolas Gregoire 24.1 39
40 = Information leak =
41
Nicolas Gregoire 26.1 42 |=Namespace|=Extension function|=PoC
43 |http:~/~/xmlns.4suite.org/ext|bin-path()|[[4suite-bin-path.xsl>>attach:4suite-bin-path.xsl]]\\
44 |http:~/~/xmlns.4suite.org/ext|ospath2uri()|[[4suite-ospath2uri.xsl>>attach:4suite-ospath2uri.xsl]]\\
45 |http:~/~/xmlns.4suite.org/ext|uri2ospath()|[[4suite-uri2ospath.xsl>>attach:4suite-uri2ospath.xsl]]\\