[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: how to Filter the log files

Subject: RE: how to Filter the log files
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Wed, 29 Sep 2004 15:03:33 +0300
xml filename
Hi,

> This is a sample XML file.Actually there might be lot of XMLs.
> In the XSL I wrote, I want to incorporate a logic through which I can
> filter out all those XML files in which responseCode is not 0.All the

Select only those sampleResult elements that match that condition.

> XML files in which the responseCode is 0 ,then xml filename should be
> written in a text file say textA.txt.
> All the XML files in which any responseCode is not 0,then xml filename
> should be written in a text file say textB.txt.

Unfortenately XSLT doesn't allow you to write to external files. You can go
around this by:

1. using XSLT 2.0 <http://www.w3.org/TR/xslt20/#creating-result-trees>,
2. using extensions elements that allow you to create additional result
documents, e.g. <http://exslt.org/exsl/elements/document/index.html>,  or,
3. calling the transformation twice with a parameter to define which response
codes you want.

Check if your processor supports 1 or 2, and if it doesn't, then 3 is your
only choise.

> MoreOver in the XSL code you sent me, can you tell me how to
> create the
> file/folder?=20

You can't. There is no XSLT instruction that allows you to do that, except if
you use either 1 or 2 of the above list.

> It would also be nice if we can filter out the HTML files generated
> through XSL instead of XML logs.

I don't understand.

> Hope you might get what I want to perform :-)
>
> Please help me to provide the solution.

Choose your approach based on the capabilities of you XSLT processor, then
come back if you run into problems.

Cheers,

Jarno

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.