|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: XSL : Selecting nodes
Subject: Re: XSL : Selecting nodes
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 22 Jun 2001 16:49:36 +0100
|
Ram:
At 08:27 PM 6/22/01, you wrote:
Hi all
I am trying to get the unique country and then based on the countryset I
have to put it in a block for each country...
to start with I tried doing ...
<xsl:variable name="countries" select="WarningLabel/Country[not(. =
following::WarningLabel/Country)]"/>
<xsl:for-each select="$countries">
Country = <xsl:value-of select="$countries"/>
</xsl:for-each>
I am getting the same country value for each of the warning
label...eventhough I have two different values...
This is because the value of a node set is the value of the first node in
the set. So <xsl:value-of select="$countries"/> will always be the same.
Try <xsl:value-of select="."/> (returns the value of the context node,
which is each of the $countries in turn)
Good luck,
Wendell (trying to raise his XSL-List quotient as high as Jeni's or Mike K's)
======================================================================
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

|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|