473,394 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

File System Queries

I want to ask a general question to see if anyone has done a similar thing.
I'm thinking about creating an application that will allow me to run queries
across several XML files. I would like to use the power of the XSLT
language to help me with this problem. So I'm thinking about creating a
very simplistic language similar to XSLT that will accomplish this. I will
use XSLT to transform my language into XSLT. That XSLT will produce an HTML
file with JavaScript code in it, so I can have an interactive results that
will be displayed in a web browser.

MyLang --(using XSLT)--> XSLT --> HTML

Has anyone done anything like this? I know Schematron uses a similar
approach. I also know about XQuery, but I don't know of any good free GUI
tool for it yet. I just want to make sure I'm not reinventing the wheel.
Jul 20 '05 #1
3 1383
On Fri, 30 Jul 2004 11:47:47 -0400, "Mike King" <em*****@excite.com>
wrote:
I want to ask a general question to see if anyone has done a similar thing.
I'm thinking about creating an application that will allow me to run queries
across several XML files.


Sounds like a reasonable approach. Generating XSLT dynamically is
certainly a well-respected technique,

The downside is that XSLT uses XPath. Can XPath do the querying you
need in the final process ?

--
Smert' spamionam
Jul 20 '05 #2
> Sounds like a reasonable approach. Generating XSLT dynamically is
certainly a well-respected technique,

The downside is that XSLT uses XPath. Can XPath do the querying you
need in the final process ?
Probably not but I was going to create some XPath Extension Functions to
create the desired behavior.
--
Smert' spamionam

Jul 20 '05 #3
Mike King wrote:
Sounds like a reasonable approach. Generating XSLT dynamically is
certainly a well-respected technique,

The downside is that XSLT uses XPath. Can XPath do the querying you
need in the final process ?


Probably not but I was going to create some XPath Extension Functions to
create the desired behavior.


Cocoon's XPathDirectoryGenerator could be used for this task.
You specify a directory which is scanned recursively and returned
as a XML structure.

In addition you can specify a regular expression and a XPath
expression. The XPath expression is applied to each files
matching the regular expression and the result is included
in the returned XML structure.

More information (including an example) can be found at
http://cocoon.apache.org/2.1/userdoc...generator.html

HTH,
Gerald
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Rada Chirkova | last post by:
Hi, at NC State University, my students and I are working on a project called "self-organizing databases," please see description below. I would like to use an open-source database system for...
4
by: HEATHER CARTER-YOUNG | last post by:
Please help. I have two databases - one I'm designing that will be our in-house data mgmt system (db1) and another that is a federally-mandated system (db2). We must submit data from db2 but don't...
3
by: darrel | last post by:
In our CMS, every time a page is updated, we spit out a new XML file. This file is written via a function that queries the Database using a recursive function, grabs the data, and writes out a...
9
by: John | last post by:
Tried this on microsoft.public.access.gettingstarted - no response - perhaps more appropriate here. I'm not a database user, simply helping someone get started with a new computer. The old...
2
by: PFI | last post by:
Hi, I recently installed SQL Server 2005 Enterprise Edition (9.0.1399) and I have problems on queries concerning system file manipulation... For example, when I try to increase the Log File of...
1
by: GCeaser | last post by:
------- I have also posted this to the microsoft.public.xml group but I am not sure which one it belongs in ------ OK - I have an XML file from a vendor that uses a DTD files as follows: ...
7
by: Cheekie | last post by:
No one at my companies help desk can help me with this, so I thought I'd go to the experts =) I have an Access 2000 file that I've been using Access 2003 to open. I have a laptop and a desktop at...
17
by: NeoAlchemy | last post by:
I am starting to find more web pages that are using a query parameters after the JavaScript file. Example can be found at www.opensourcefood.com. Within the source you'll see: <script...
17
by: chadh | last post by:
Hello, I'm having some troubles exporting a query to a csv file. I am able to use the doCMD.TransferText to output the query to the csv file, however, I cannot get it to use the Export...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.