Welcome to the Mythicsoft Q&A site for:

- Agent Ransack
- FileLocator Lite
- FileLocator Pro

Please feel free to ask any questions on these products or even answer other community member questions.

Useful Links:

- Contact Us
- Help Manuals
- Mythicsoft Home
0 votes

I can't figure out how to export the results to a simple list like this:

path filename found-text

which is basically what export "Tab separated (spreadsheet)" does but with fewer columns or other separators.
There is an example "tab_separated.xsl" but it does not include the text.

Thanks in advance!

by (30 points)

1 Answer

0 votes

The easiest way to do this is in the Reports Tab. Select the Contents Report and the Tabulated - Tab Separated style and then you pick which columns you want to include.

However, to answer your specific question, this XSL should do the trick.

<?xml version="1.0"?>
<!-- Tab separated Transform
    Copyright (C) Mythicsoft Ltd 2014. All rights reserved.
    Produces output that for each found line contains the path, file name, and text
    separated by the tab (0x09) character.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

  <xsl:output method="text"/>
  <xsl:template match="/">
    <xsl:apply-templates select="//rslt:line"/>

  <xsl:template match="rslt:line">
    <xsl:value-of select="../../rslt:path"/>
    <xsl:value-of select="../../rslt:name"/>
    <xsl:value-of select="rslt:text"/>

by (31.4k points)

Thanks - works perfectly!