list4xt : Mailing list for the XT users community.
[list4xt] Re: Support for omquery (XPath query)
Subject: [list4xt] Re: Support for omquery (XPath query)
User: Website From: Paul Tchistopolskii (pault12@pacbell.net)
Date: 04/06/2000 - 02:52
> Paul Tchistopolskii wrote:
> >
> > Is there anybody out there, who sees *any* way to hack XT to allow
> > evaluatable XPath's ? How easy it could be to add xt:evaluate() ?
> > Is this xt:evaluate() realy the best way ? ( Looks like "yes" for XSLT )
>
> Couldn't this xt:evaluate simply rely on omquery ?
... actualy, after thinking about this a bit more, I realized that
grep-alike functionality could be provided with generation
of the stylesheet on the fly ... One stylesheet produces
another ( so <xsl:apply-templates select="..."> is generated )
and then second stylesheet is applied. For my framework
this is easeir way than to hack XT, but maybe this is 'cleaner'
than xt:evaluate in the core ? Well ... I don't think generation
of the stylesheets at runtime is 'cleaner' than appropriate
conversions in the core ( String ->Xpath, String -> Nodeset ),
but ....
Actualy, have anybody already written that pure String-> RTF
conversion? Should be easy, if following Eric's example
published on the 4xt.org website.
This allows : String ->RTF, RTF -> Nodeset - with xt:node-set ,
and this allows providing a *node*set* as a parameter of the
stylesheet.
I'l write this stuff anyway in next 2 weeks, but maybe I'm reinventing
the wheel here ?
> > I mean there are some situations when XPath expression
> > is passed from the 'outher space' to the stylesheet.
>
> Yes, I agree, it would be really useful...
> And regular expressions would be a great complement as well.
I'm not sure about regular expressions at all. I can not imagine any
usecase for regular expressions if the schema of XML file is reasonable.
I mean that if some parts of the content are not already separated
by markup ( this allows XPath to do everything ), trying to separate
those parts with the help of regular expressions is a logical hack.
Am I wrong?
I'l be glad to get a usecase which will show that we need regexprs on
a 'good' XML, because I may not see it ... Do you ?
Rgds.Paul.
--
Mailing list for the XT users community. (http://boredomconference.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
|