Differences

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

logging_xml 2024-10-07 logging_xml 2026-01-16 (current)
Line 502: Line 502:
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:winscp="http://winscp.net/schema/session/1.0"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:winscp="http://winscp.net/schema/session/1.0">
-    <xsl:output method="text" encoding="UTF-8"/> +    <xsl:output method="text" encoding="UTF-8"·/> 
-    <xsl:strip-space elements="*"/>+    <xsl:strip-space elements="*"·/>
    <xsl:template match='winscp:download[winscp:result[@success="true"]]/winscp:filename'>     <xsl:template match='winscp:download[winscp:result[@success="true"]]/winscp:filename'>
-        <xsl:value-of select="@value"/>+        <xsl:value-of select="@value"·/>
        <xsl:text>&#xa;</xsl:text>         <xsl:text>&#xa;</xsl:text>
    </xsl:template>     </xsl:template>
Line 513: 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&id=21714|available from Internet Archive]]): \\ <code> 
-msxsl.exe log.xml download.xslt 
-</code> 
-  * [[https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home|Libxml2]] ''xsltproc.exe'': \\ <code> 
-xsltproc.exe download.xslt log.xml 
-</code> 
  * .NET [[dotnet>system.xml.xsl.xslcompiledtransform|''XslCompiledTransform'' class]], e.g. from PowerShell: \\ <code powershell>   * .NET [[dotnet>system.xml.xsl.xslcompiledtransform|''XslCompiledTransform'' class]], e.g. from PowerShell: \\ <code powershell>
$xslt = New-Object System.Xml.Xsl.XslCompiledTransform $xslt = New-Object System.Xml.Xsl.XslCompiledTransform
$xslt.Load("download.xslt") $xslt.Load("download.xslt")
$xslt.Transform("log.xml", "download.txt")</code> $xslt.Transform("log.xml", "download.txt")</code>
 +  * [[https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home|Libxml2]] ''xsltproc.exe'': \\ <code>
 +xsltproc.exe download.xslt log.xml
 +</code>
The output will be: The output will be:

Last modified: by martin