This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Improving efficiency of an XPath expression?
> > 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