Subject: Re: [xsl] XPath perfomance in attributes or nodes? From: "Rubén Martínez" <rubenm@xxxxxxxxxxxxx> Date: Wed, 06 Mar 2002 13:18:56 +0100 |
I'm afraid I'm not going to answer your question but ask for other possibility: >Is it faster using XPath > projects/project[uid='{6A97F258-93A7-4C5E-B712-052130A5208C}'] >or > projects/project[@uid='{6A97F258-93A7-4C5E-B712-052130A5208C}'] >or even (but this is not always possible) > projects/project[name='The project'] or even (when is this possible?) projects/project/uid='{6A97F258-93A7-4C5E-B712-052130A5208C}' Thanks in advance. *********** REPLY SEPARATOR *********** On 6/3/02 at 11:38 Arjé Cahn wrote: >Hi everyone, > >Does anyone have some solid performance figures on using XPath on >attributes or nodes? > >For example, I have the following XML snippet: > > <projects> > <project uid="{6A97F258-93A7-4C5E-B712-052130A5208C}"> > <uid>{6A97F258-93A7-4C5E-B712-052130A5208C}</uid> > <name>The project</name> > <description>This is the project</description> > <startdate>01-01-2002</startdate> > </project> > <project uid="{6A97F258-93A7-4C5E-B712-052130A5208D}"> > <uid>{6A97F258-93A7-4C5E-B712-052130A5208D}</uid> > <name>Another project</name> > <description>This is another project</description> > <startdate>02-02-2002</startdate> > </project> > </projects> > >And I want to select a <project>. >Is it faster using XPath > projects/project[uid='{6A97F258-93A7-4C5E-B712-052130A5208C}'] >or > projects/project[@uid='{6A97F258-93A7-4C5E-B712-052130A5208C}'] >or even (but this is not always possible) > projects/project[name='The project'] >??? > >I will have about 10000+ items. > >Regards, > >Arjé Cahn > > >--------------------------------------------------------- >Content Management Department >Hippo Webworks >Grasweg 35 >1031 HW Amsterdam >The Netherlands >Tel +31 (0)20 6345173 >Fax +31 (0)20 6345179 >arje(at)hippo(dot)nl / www.hippo.nl > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list y XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XPath perfomance in attribute, Arjé Cahn | Thread | RE: [xsl] XPath perfomance in attri, Michael Kay |
Re: [xsl] Editors?, Carsten Klein | Date | [xsl] How to display more complicat, shenjun |
Month |