Re: [xsl] Multiple elements condition

Subject: Re: [xsl] Multiple elements condition
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Tue, 28 Aug 2007 10:00:31 +0200 (CEST)
cknell@xxxxxxxxxx wrote:

  Hi

> So if "note[para[2]] " means "at least 2", how do you express
> "exactly 2"?

  "note[count(para) eq 2]" or "note[para[2] and not(para[3])]".

  I think I remember Michael said once that Saxon rewrote the former
into the later (or maybe it was only "count(elem) = 2" into
"elem[2]"?), to avoid counting all the sequence items.  But I am not
sure.

  Regards,

--drkm
























      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

Current Thread