Re: [xsl] Improving efficiency of an XPath expression?

Subject: Re: [xsl] Improving efficiency of an XPath expression?
From: "Michael Beddow" <mbnospam@xxxxxxxxxxx>
Date: Fri, 7 Jun 2002 16:22:14 +0100
> >  don't think I can afford the
> > overhead of keeping validation.
>
> you don't need to validate, you can use a non validating parser with a
> one line dtd that _only_ declares id to be of type ID. the overhead of
that
> is a lot less than the overhead of evaluating // (I'd guess, but don't
> trust me on implementation issues)
>

Thanks David, that's an interesting possibility (for some other applications
too) that never occurred to me, so I'll give it a try. I'd always assumed
that parsers built some sort of index of declared ID's as a side effect of
their validating pass and so without validation turned on that wouldn't
happen. I'll do some experiments.

Michael
---------------------------------------------------------
Michael Beddow   http://www.mbeddow.net/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread