Differences

This shows you the differences between the selected revisions of the page.

logging_xml 2021-11-23 logging_xml 2024-12-02 (current)
Line 95: Line 95:
<code xml> <code xml>
-<group name="put -preservetime d:\*.txt" start="2012-01-04T14:25:10.204Z">+<group name="put -preservetime d:\*.txt" start="2021-12-03T14:25:10.204Z">
  <upload>   <upload>
    <filename value="d:\readme.txt" />     <filename value="d:\readme.txt" />
    <destination value="/home/user/readme.txt" />     <destination value="/home/user/readme.txt" />
 +    <size value="15345" />
    <result success="true" />     <result success="true" />
  </upload>   </upload>
Line 224: Line 225:
| ''filename''            | Absolute path to source remote file (in ''value'' attribute) | | ''filename''            | Absolute path to source remote file (in ''value'' attribute) |
| ''destination''          | Absolute path to destination local file (in ''value'' attribute)((File name may differ from name of source file.)) | | ''destination''          | Absolute path to destination local file (in ''value'' attribute)((File name may differ from name of source file.)) |
 +| ''size''                | Number of bytes transferred. |
Example: Example:
Line 230: Line 232:
  <filename value="/home/martin/public_html/about.html" />   <filename value="/home/martin/public_html/about.html" />
  <destination value="d:\www\about.htm" />   <destination value="d:\www\about.htm" />
 +  <size value="55387" />
  <result success="true" />   <result success="true" />
</download> </download>
Line 378: Line 381:
| ''filename''            | Absolute path to source local file (in ''value'' attribute) | | ''filename''            | Absolute path to source local file (in ''value'' attribute) |
| ''destination''          | Absolute path to destination remote file (in ''value'' attribute)((File name may differ from name of source file.)) | | ''destination''          | Absolute path to destination remote file (in ''value'' attribute)((File name may differ from name of source file.)) |
 +| ''size''                | Number of bytes transferred. |
Example: Example:
Line 384: Line 388:
  <filename value="d:\www\about.htm" />   <filename value="d:\www\about.htm" />
  <destination value="/home/martin/public_html/about.html" />   <destination value="/home/martin/public_html/about.html" />
 +  <size value="55387" />
  <result success="true" />   <result success="true" />
</upload> </upload>
Line 476: Line 481:
<code xml> <code xml>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
-<session xmlns="http://winscp.net/schema/session/1.0" name="user@host" start="2015-01-30T06:45:57.008Z">+<session xmlns="http://winscp.net/schema/session/1.0" name="user@host" start="2021-12-03T06:45:57.008Z">
  <download>   <download>
    <filename value="/path/file1.txt" />     <filename value="/path/file1.txt" />
    <destination value="C:\path\file1.txt" />     <destination value="C:\path\file1.txt" />
 +    <size value="2022" />
    <result success="true" />     <result success="true" />
  </download>   </download>
Line 485: Line 491:
    <filename value="/path/file2.txt" />     <filename value="/path/file2.txt" />
    <destination value="C:\path\file2.txt" />     <destination value="C:\path\file2.txt" />
 +    <size value="5782" />
    <result success="true" />     <result success="true" />
  </download>   </download>
Line 506: Line 513:
You can execute it using any %%XSLT%% processor: You can execute it using any %%XSLT%% processor:
-  * Microsoft ''msxsl.exe'' (deprecated, but [[https://web.archive.org/web/20200202112313/https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;id=21714|available from Internet Archive]]): \\ &lt;code&gt; +  * .NET [[dotnet>system.xml.xsl.xslcompiledtransform|''XslCompiledTransform'' class]], e.g. from PowerShell: \\ &lt;code powershell&gt; 
-msxsl.exe log.xml download.xslt +$xslt = New-Object System.Xml.Xsl.XslCompiledTransform 
-</code> +$xslt.Load(&quot;download.xslt&quot;) 
-  * [[http://xmlsoft.org/|Libxml2]] ''xsltproc.exe'': \\ <code>+$xslt.Transform(&quot;log.xml&quot;, &quot;download.txt&quot;)</code> 
 +  * [[https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home|Libxml2]] ''xsltproc.exe'': \\ <code>
xsltproc.exe download.xslt log.xml xsltproc.exe download.xslt log.xml
</code> </code>

Last modified: by martin