cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <Geert.Jos...@daidalos.nl>
Subject Re: node comparison
Date Wed, 23 Feb 2005 17:33:46 GMT
Though off-topic for this list, I'm interested in what you tried in XSL. Ever considered using
xsl:key?

Cheers,
Geert

> Hi,
> 
> I am using Cocoon to process large docs, and I wish to compare following 
> nodes
> <rowset>
>    <row>
>          <date>YYYYMMDD</date<
>    </row>
>    <row>
>          <date>YYYYMMDD</date>
>    </row>
>       :
>       :
> 
> and I want to compare the date elements and print out the difference in 
> the result XML.
> 
> Normally I would do this along the lines of using 
> preceding-sibling::row/date type of approach,
> and I have even tried recursive templates!
> 
> However since this is Cocoon, and we are using a sax model, is there a 
> better way, using javascript or something?
> 
> I get stack overflows, or very slow responses when using the recursive 
> or Xpath axes methods!
> 
> Any help would be great.
> 
> Thanks,
> 
> Norman Barker
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 

-- 
Geert.Josten@Daidalos.nl
IT-consultant at Daidalos BV, Zoetermeer (NL)

http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464

GPG: 1024D/12DEBB50

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message