list4xt : Mailing list for the XT users community.
[list4xt] Re: XPath query
Subject: [list4xt] Re: XPath query
From: Eric van der Vlist (vdv@dyomedea.com)
Date: 20/04/2000 - 21:11
Dave,
There is a very simple way to do it which is to generate a simple XSLT
stylesheet which is keeping only the node to find and to process your
document with it...
Otherwise, you need a XPATH implementation more than a XSLT processor.
The XT XPATH implementation is not documented and I have never used
it...
Paul has pointed me to a XPATH implementation on top of XT which you may
want to check (http://www.246.ne.jp/~kamiya/pub/XPath4XT.html).
Other XSLT processors have a documented XPATH API (it's the case with
Xalan for example).
This is an interesting subject, please keep us posted !
Eric
Dave Pawson wrote:
>
> OK here goes.
>
> Requirement:
>
> 1. To be able to locate, within an xml document, from any
> node of that document, another node,using an xpath statement,
> from a java application.
>
> Context. I need access to a parsed document (dom or any other).
> Based on user actions I want to be able to generate a string,
> have it parsed as xpath, then use that parsed string to generate
> the query into the xml document.
>
> Use case. An application using XML source (text) document,
> SMIL links to audio (.wav) of same source. User queries, of
> the nature 'move up one level', find next section etc etc,
> will be converted into xpath statements. the response from
> the system needs to then either report an error or return
> the node/nodelist/text from the query.
>
> Hierarchy as I see it
>
> my-app
> query layer | SMIL interface | audio access
> dom(or other) interface | xpath parse interface
>
> Application (version is pre xml) is at www.daisy.org
>
> Am I talking sense? Can it be done?
> (more to come)
>
> In hope, DaveP
>
--
------------------------------------------------------------------------
Eric van der Vlist Dyomedea http://nycapitalexpo.com
creator http://midicart.com - http://cebexpo.net
editor http://texascountrybank.com http://merchantaccountmentors.com
------------------------------------------------------------------------
--
Mailing list for the XT users community. (http://1stglobalcapital.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
Archive générée par hypermail 2b28 le 06/11/2001 - 11:46 CET
webmaster@4xt.org
|