W3C home > Mailing lists > Public > public-i18n-its-ig@w3.org > June 2008

Re: Streaming ITS processor

From: Jirka Kosek <jirka@kosek.cz>
Date: Mon, 16 Jun 2008 10:40:14 +0200
Message-ID: <485626EE.8020708@kosek.cz>
To: Asgeir Frimannsson <asgeirf@redhat.com>
CC: Felix Sasaki <fsasaki@w3.org>, public-i18n-its-ig@w3.org
Asgeir Frimannsson wrote:

> I guess this is one of the areas where you have a gut feeling that something 
> could be done better, but have no implementations to justify that claim :) 
> Some of the main drawbacks with ITS at the moment are:
> - Having to load the instance document into memory for processing
> - Having to traverse the in-memory DOM for each rule, as most xpath processors 
> take one expression and returns a node set.

Please note that as long as you stick to XPath patterns (not full 
expressions) you can use internal pattern matching API of XSLT processor 
which is optimized for this task and gives much better performance then 
naive evaluating of each XPath against document tree.

   Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
        Professional XML consulting and training services
   DocBook customization, custom XSLT/XSL-FO document processing
  OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member

Received on Monday, 16 June 2008 08:40:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:11:27 UTC