Re: [xsl] use of xsl:key in cross-referencing

Subject: Re: [xsl] use of xsl:key in cross-referencing
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 20 Mar 2003 11:52:31 -0500
Xiaocun,

At 07:39 PM 3/19/2003, you wrote:
> >   When I process the 1st group of rows
> >(questionnaires), I call key() function by passing
> in
> >the value in the 2nd cell.
>
> Ignore the first group of rows and just iterate over
> the questions, using
> your key to group them.

That was the first came to my mind as well, but the
problem is that a questionnaire defined in 1st group
may not be used in the 2nd group, those will be
omitted.  I am looking for a way to combine the two
groups so that every questionnaire is processed as
long as it is used in 1st (questionnaires) or 2nd
group (questions). Order to me is not important.

In that case, you can iterate over and de-duplicate from both groups.


In fact, you can define two keys for the two groups with the same name, only different "use" values, which could help in this.

I'd be more explicit about this, except (a) it's much harder to write up without some sample code to chew on (please post again with your source and problem statement?), and (b) I'm in a time crunch today.

But I learned this trick from Jeni: I think if you look in the FAQ and on Jeni's site (http://www.jenitennison.com), where grouping is covered in some detail, you could find something.

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread