xsl-list
[Top] [All Lists]

Re: [xsl] How do I change a XSL style sheet to group data together under one heading

2007-05-21 01:39:27
kieters c wrote:
Good day,

Thank you for your reply. I am aware of the one entry and have tried to run it with it as presented to you and without it with only sample_date_time. The result is the same. I receive the message for the following line:

<xsl:for-each select="sample[generate-id() = generate-id(key('sample',concat(sample_date_time, cp_name)[1])]">

line 15, Character 23
Stylesheet error: Invalid XPath expression
select


Well, I count three opening parentheses and two closing parentheses so the processor is correct you have a typo. You do not close the concat() function:

<xsl:for-each select="sample[generate-id() = generate-id(key('sample',concat(sample_date_time, cp_name))[1])]">

Cheers,
-- Abel

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>