|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
> > '@'?
>
> Charles, thanks for your input on this as well.
> Since
> the solution originally came from you, I should have
> directed this question to you. Sorry for not
> following
> the messages in order.
>
> Can you explain the use of the above select
> statement?
> Is 'union' a key word? And can you interchange it
> with
> the symbol '|'?
I took another look at Charles solution and found the
explanation for the word 'union' (it's a key):
<xsl:key name="union" match="group/table/col"
use="@month" />
So the 'select' statement now makes sense. Sorry for
posting unnecessarily.
I am now posed with another challenge. How do I use an
external lookup table to define the column headings?
E.g. Jan, Feb, Mar,...,Dec. Any pointers would be
appreciated.
Imrran
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
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
|

Cart








