This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: The comparison after inner for-each iterartion.
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] The comparison after inner for-each iterartion.
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 1 May 2001 13:20:44 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> My xml is like this:
>
> <Xml>
> <Info>
> <Personnel>
> <Name first="Peter" last="Golf" />
> <Name first="Alex" last="John" />
> </Personnel>
>
> <Prof>
> <Name first="Mery" last="Joe" />
> <Name first="Andrew" last="Bush">
> </Prof>
> </Info>
> </Xml>
You shouldn't be using <Xml> as an element name: it's a reserved name.
>
> In my output I want to do like:
> If <Name> child from <Personnel> node has same value of '
> first' attribute
> as in Prof/Name then Personnel/Name will not be written to output.
Your spec isn't very clear. I think you're probably on the right lines: see
the grouping examples at www.jenitennison.com for detailed advice.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list