[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: RE: How to implement an array

Subject: RE: RE: How to implement an array
From: "Michael Semcheski" <mhs-list@xxxxxxxxx>
Date: Wed, 12 Feb 2003 11:59:57 -0500
RE: RE:  How to implement an array
You used the following in your solution:

>       <xsl:for-each
> select="table/col[count(.|key('union', @month)[1]) =
> 1]">

Can you elaborate on how this works. I gather it
selects a unique occurence of the month attribute from
all the elements. How do you do this if month was
element instead of attribute? Just by omitting the
'@'?

Mhs>I believe you have the above correct.  Its sort of like a "SELECT
DISTINCT".
</Mhs

Also, how does 'generate-id' work? Is it a built-in
xsl function?

Mhs> Check out this link:
http://www.zvon.org/xxl/XSLTreference/Output/function_generate-id.html
http://www.zvon.org/xxl/XSLTreference/Output/index.html
I really recommend checking out zvon.org if you are just starting out.  It
really brought me up to speed very quickly.
</Mhs



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.