Subject: Re: [xsl] Filtering a node-set From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 9 Jan 2008 11:23:15 GMT |
<xsl:variable name="boxSize" select="'0.002'"/> why make this a string rather than a number? <xsl:variable name="boxSize" select="0.002"/> will save the system coercing it to a number every time you use it. you rarely want to do test="count(...) =0" as (unless your system rewrites this away that forces it to work out how many things there are and count them when in fact it could stop as soon as it finds any. just do test="not(....)" as a node set tests as true if non empty. > I can't see a way of eliminating the use of > the $top, $bottom, $left and $right variables. Is it possible? possibly not, if there were just one, say right you could do something like select="$elements[$elements[(@lon+180) < @lon + 180 + $boxSize]] but I don't think you can handle multiple attribute comparisons without introducing variables anywhere. is node-set() really not availabe to you? there arever few processors where it is not supported. David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Filtering a node-set, George James | Thread | RE: [xsl] Filtering a node-set, Michael Kay |
Re: [xsl] Declaring more than one t, Abel Braaksma | Date | Re: [xsl] Fun w/ Anagrams and FXSL:, M. David Peterson |
Month |