Subject: Mad multiple select, and I'm getting it all wrong!!!
From: "Daniel Newman" <daniel.newman@xxxxxxxxxxx>
Date: Wed, 25 Jul 2001 12:22:11 +0100
|
Hello again everyone (sorry, I'll figure this stuff out in the end),
I'm writing a select for an apply-templates command, but I'm getting it all
mixed up. This is what I've written:
<xsl:apply-templates
select="HoldingInformation2Response/Items/Item[class_code =
RetrieveClassInfoRSResponse/Items/Item/ClassCode[../DisplayOnInternetSite
= 'Y']]" />
And what I want to do, is select all Item nodes from
HoldingInformation2Response/Items where it's class_code is equal to all
ClassCode nodes from RetrieveClassInfoRSResponse/Items/Item where
DisplayOnInternetSite = 'Y'
Here are the nodes in a visual sense:
<ROOT>
<HoldingInformation2Response>
<Items>
<Item>
<Holding/>
<class_code>OMN</class_code>
<Available>
</Item>
<Item>
<Holding/>
<class_code>DRP</class_code>
<Available>
</Item>
</Items>
</HoldingInformation2Response>
<RetrieveClassInfoRSResponse>
<Items>
<Item>
<ClassCode>OMN</ClassCode>
<DisplayOnInternetSite>N</DisplayOnInternetSite>
</Item>
</Items>
<Items>
<Item>
<ClassCode>DRP</ClassCode>
<DisplayOnInternetSite>Y</DisplayOnInternetSite>
</Item>
</Items>
</RetrieveClassInfoRSResponse>
</ROOT>
This looks like it should work, but it doesn't do anything. I have a
template matching Item, and I was using this to test what was being returned
<xsl:value-of select="." />, but this wasn't doing anything.
Any help would be great.
Daniel.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: sorting by date, (continued)
- Oleg Tkachenko - Tue, 24 Jul 2001 10:33:53 -0400 (EDT)
- Michael Kay - Tue, 24 Jul 2001 11:52:15 -0400 (EDT)
- Oleg Tkachenko - Tue, 24 Jul 2001 12:17:29 -0400 (EDT)
- Michael Kay - Tue, 24 Jul 2001 12:42:39 -0400 (EDT)
- Daniel Newman - Wed, 25 Jul 2001 07:26:07 -0400 (EDT) <=
- David Carlisle - Wed, 25 Jul 2001 08:16:56 -0400 (EDT)
- Daniel Newman - Tue, 24 Jul 2001 10:45:27 -0400 (EDT)
- David Carlisle - Tue, 24 Jul 2001 11:07:49 -0400 (EDT)
- Jeni Tennison - Tue, 24 Jul 2001 11:47:35 -0400 (EDT)
|
|