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&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;) 
 +$xslt.Transform(&quot;log.xml&quot;, &quot;download.txt&quot;)</code>
  * [[https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home|Libxml2]] ''xsltproc.exe'': \\ <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

Last modified: by martin