Re: Searching Text Files

Subject: Re: Searching Text Files
From: Laura Lemay <lemay -at- lauralemay -dot- com>
To: Ed <glassnet -at- gmail -dot- com>
Date: Mon, 22 Sep 2008 19:30:33 -0700

If it were me, I would just use plain old grep (standard on unix).
Just because the files are XML doesn't mean you have to use XSLT.
It's just text.

Laura


On Sep 22, 2008, at 4:27 AM, Ed wrote:

> Thanks for your comments, Paul. Let's say I am cut off from the XML
> backend at work, and simply have a collection of text files that
> happen to be XML. So, my first inclination was to find a solution for
> any group of text files.
>
> I'll look into the XSLT solution, and see if I have access to it on
> the job through our application. In addition, I'll see if xsltproc is
> on my solaris or ubuntu boxes at home.
>
> In the meantime, I appreciate any/all comments.
>
> Ed
>
> On Mon, Sep 22, 2008 at 6:38 AM, Inbar, Paul <paul -dot- inbar -at- intel -dot- com>
> wrote:
>> Hi Ed,
>>
>> I am not sure I fully understand what you want to do. If you want to
>> just print out the text between tags, have you considered using
>> XSLT? Do
>> you know what tags you are interested in? You would then need an xslt
>> processor such as xsltproc. Does you linux system have one installed?
>>
>> There are also Perl modules that help with retrieving information
>> from
>> xml files.
>>
>> For the recursion, you could use a Perl script to get a list of
>> all the
>> files, and then call the xslt processor from inside the perl
>> script to
>> process each file.
>>
>> Paul
>
> --
> Ed
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> ComponentOne Doc-To-Help gives you everything you need to author and
> publish quality Help, Web, and print content. Perfect for technical
> authors, developers, and policy writers. Download a FREE trial.
> http://www.componentone.com/DocToHelp/
>
> True single source, conditional content, PDF export, modular help.
> Help & Manual is the most powerful authoring tool for technical
> documentation. Boost your productivity! http://www.helpandmanual.com
>
> ---
> You are currently subscribed to TECHWR-L as lemay -at- lauralemay -dot- com -dot-
>
> To unsubscribe send a blank email to
> techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
> or visit http://lists.techwr-l.com/mailman/options/techwr-l/lemay%
> 40lauralemay.com
>
>
> To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com
>
> Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
> http://www.techwr-l.com/ for more resources and info.
>

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ComponentOne Doc-To-Help gives you everything you need to author and
publish quality Help, Web, and print content. Perfect for technical
authors, developers, and policy writers. Download a FREE trial.
http://www.componentone.com/DocToHelp/

True single source, conditional content, PDF export, modular help.
Help & Manual is the most powerful authoring tool for technical
documentation. Boost your productivity! http://www.helpandmanual.com

---
You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit http://lists.techwr-l.com/mailman/options/techwr-l/archive%40web.techwr-l.com


To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/ for more resources and info.


References:
Searching Text Files: From: Ed
RE: Searching Text Files: From: Inbar, Paul
Re: Searching Text Files: From: Ed

Previous by Author: Re: Google Doc in Comic Book Form
Next by Author: RE: Hourly rate for script writing?
Previous by Thread: Re: Searching Text Files
Next by Thread: Re: Searching Text Files


What this post helpful? Share it with friends and colleagues:


Sponsored Ads