<
From version < 6.1 >
edited by Outhman Moustaghfir
on 2023/07/24 14:49
To version < 7.1 >
edited by Outhman Moustaghfir
on 2023/07/24 14:52
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,3 +1,5 @@
1 += =
2 +
1 1  = FileToBase64 =
2 2  
3 3  
... ... @@ -21,21 +21,28 @@
21 21  
22 22  the XSL used :
23 23  
24 -* connectorAlias: the alias used in the scenario to define a connector. (SplitXML1 , AlertJob2 ...)
25 -* sensType: input or output files ( //IN //or //OUT //), it's optional and takes as default value //ANY.//
26 -* fileType: EDI, Format, StyleSheet ...
26 +{{code language="xml"}}
27 +<?xml version="1.0" encoding="utf-8"?>
28 +    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:ixf="http://www.ixPath.com/Function" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ix="localFunction" xmlns:fn="http://www.w3.org/2005/xpath-functions" >
29 +        <xsl:output method="xml" indent="yes"/>
30 +            <!-- Beginning of the Translation -->
31 +            <xsl:template match="/">
32 +                <ixDOC>
33 +                <TEST><xsl:value-of select="ixf:FileToBase64('FtpListener1')"/></TEST> 
34 +                </ixDOC>
35 +            </xsl:template>
36 +</xsl:stylesheet>
37 +{{/code}}
27 27  
28 28  Upon execution, a file is generated, containing the encoded value of the file in base 64 format, enclosed within the 'TEST' tag
29 29  
30 -{{code language="XML"}}
31 -<?xml version="1.0" encoding="utf-8"?>
32 - <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:ixf="http://www.ixPath.com/Function" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ix="localFunction" xmlns:fn="http://www.w3.org/2005/xpath-functions" >
33 - <xsl:output method="xml" indent="yes"/>
34 - <!-- Beginning of the Translation -->
35 - <xsl:template match="/">
36 - <ixDOC>
37 - <TEST><xsl:value-of select="ixf:FileToBase64('FtpListener1')"/></TEST>
38 - </ixDOC>
39 - </xsl:template>
40 -</xsl:stylesheet>
41 +{{code language="xml"}}
42 +<?xml version="1.0" encoding="UTF-8"?>
43 +<ixDOC xmlns:ixf="http://www.ixPath.com/Function"
44 +       xmlns:xs="http://www.w3.org/2001/XMLSchema"
45 +       xmlns:ix="localFunction"
46 +       xmlns:fn="http://www.w3.org/2005/xpath-functions">
47 +   <TEST>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCg0KICAgPGl4RG9jPg0KICAgIA0KCQ0KCTxNZXNzYWdlIHNlbGVjdD0gIkEubnVtYmVyLEMuTkFNRSBBUyBuYW1lc3RlLEIuTkFNRSBBUyBuYW1lY2xpZW50LCBBLnNvdXJjZSwgQS5jcmVhdGVkICwgRC5zdWJqZWN0ICIgICANCgkgICAgICAgICBmcm9tID0ib3N0X3RpY2tldCBBIEpPSU4gb3N0X3VzZXIgQiBKT0lOIG9zdF9vcmdhbml6YXRpb24gQyBKT0lOIG9zdF90aWNrZXRfX2NkYXRhIEQiIA0KCSAgICAgICAgIHdoZXJlPSIoKEIuaWQ9QS51c2VyX2lkKSBhbmQgKEIub3JnX2lkPUMuaWQpKWFuZCAoRC50aWNrZXRfaWQgPSBBLnRpY2tldF9pZCkgIg0KCSAgICAgICAgID4NCgkNCgk8L01lc3NhZ2U+DQoJDQogIDwvaXhEb2M+</TEST>
48 +</ixDOC>
41 41  {{/code}}
50 +
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian