Subject: Re: [xsl] Best performant way to selectively find and process one node From: Florent Georges <darkman_spam@xxxxxxxx> Date: Sun, 20 May 2007 23:05:26 +0200 (CEST) |
Andrew Welch wrote: Hi > <xsl:template match="/"> > <xsl:apply-templates select="/bookstore/books/book[id=$book_id]"/> > ... > To speed up repeated access use a key, eg: > <xsl:key name="books-by-id" match="book" use="bookId"/> To be sure that's clear for the OP: using a key should be useful only if you access it at least twice. If you just use it once, the simple solution above should do the same thing, without bulding an index for the key. > if you have 1 large file like that then an XML database might be > more suitable your needs - have you looked at any yet? That's another solution, indeed. Regards, --drkm _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Best performant way to se, Andrew Welch | Thread | RE: [xsl] Best performant way to se, Michael Kay |
Re: [xsl] Best performant way to se, Andrew Welch | Date | [xsl] [FO] columns with borders, Kamal Bhatt |
Month |