Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 26944 invoked by uid 500); 13 May 2002 07:53:20 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 26931 invoked from network); 13 May 2002 07:53:20 -0000 Message-ID: <3CDF705E.8040007@anyware-tech.com> Date: Mon, 13 May 2002 09:50:54 +0200 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: fr, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: A Transformer in progress.... References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Lewis, Andrew J wrote: > >>I'm working on a Transformer that processes specifically text nodes and >>using regular expressions, wraps matched portions of a node in a tag. I'm >>really just getting started on it - I have the basics working, but still >>need to be able to specify the rules in an external file, etc. It has been >>an interesting excercise so far, and the intent is to be able to detect >>things like dates, currency amounts, and units of measure in a text node, >>and mark them for later processing. >> >>I am planning on allowing rules to be specified in an external file >>identified at componenet configuration, or directly in the component >>configuration. I am also planning on allowing the "replacement" to be a >>complete fragement with groups from the matched expression referencable >>(and replaced) in etiher attribute values or text nodes. (currently I >>merely enclose the match in a tag). >> >>Before I move on, has anyone else already done something like this? Does >>anyone (other than me) think it would be useful? >> >>Ok...now to my real question... >> >>Does anyone know of existing code that I can use to track and identify if >>the current point in the SAX stream matches a simplified XPath expression? >>I would really like to apply expression rule set based on an XPath subset. >> >>Any comments or suggestions? >> For the simplified XPath, you should take a look a the ongoing work on STX (streaming transformations for XML) at http://www.gingerall.cz/stx/index.html : they have defined a subset of XPath compatible with event-driven transformations. Sylvain -- Sylvain Wallez Anyware Technologies Apache Cocoon http://www.anyware-tech.com mailto:sylvain@apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org