473,320 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

group-by is not a valid extention element

I am using a web control called eXml which is an extention to ms xml web control which supports xslt 2.0

when trying to group elements i receive the following error:

group-by is not a valid extention element

is there a namespace or something a need to add.

my source is below

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions">
<xsl:output method="xhtml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<div>
<table width="100%" cellpadding="4" cellspacing="4" border="0">
<tr valign="top" align="left">
<th colspan="3">Stats Report</th>

</tr>
<xsl:for-each select="doc/StatsReport/Store">
<tr valign="top" align="left">
<td>
Store: <xsl:value-of select="@Number"/>
</td>
<td></td>
<td></td>
</tr>

<xsl:for-each select="KioskID">

<tr valign="top" align="left">
<td colspan="3">
KioskID: <xsl:value-of select="@KioskID"/>
</td>

</tr>
<tr>
<td colspan="3">
<hr></hr>
</td>

</tr>

<tr valign="top" align="left">
<td>
<h6>Keyword </h6>
</td>
<td>
<h6>Count</h6>
</td>

</tr>



<xsl:for-each-group select="Klog" group-by="@Keyword">

<tr>

<td>

<xsl:value-of select="current-grouping-key()"/>
</td>
<td>
<xsl:value-of select="sum(current-group()/@Count)"/>
</td>
</tr>

</xsl:for-each-group>
<xsl:for-each select="Keyword">
<tr>

<td>

<xsl:value-of select="@Name"/>
</td>
<td>
<xsl:value-of select="@NoCount"/>
</td>
</tr>
</xsl:for-each>





</xsl:for-each>
</xsl:for-each>
</table>
</div>


</xsl:template>
</xsl:stylesheet>

Sample XML File:


<?xml version="1.0"?>
<doc>
<ReportName>Report2</ReportName>
<StartDate>Apr 4 2007 12:00AM</StartDate>
<EndDate>Jun 1 2007 11:59PM</EndDate>
<StatsReport><Store Number="123">
<KioskID KioskID="STCSW1">
<Klog Keyword="Keyword1" SubKeyword="" Count="77"/>
<Klog Keyword="Keyword2" SubKeyword="Name First" Count="4"/>
<Klog Keyword="Keyword2" SubKeyword="OrderForm" Count="1"/>
</KioskID>
</Store>
</StatsReport>

</doc>
Jun 4 '07 #1
1 1622
Dököll
2,364 Expert 2GB
It looks like information about this is scarce. I could be looking too deep. Your assumptions may be correct though. I did find something about grouping:

http://www.w3schools.com/xsl/el_number.asp


Hopefully this is what you're trying to achieve...
Jul 4 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Tom Loach | last post by:
Our system administrator set up an NT server group in order to allow our users to login to our application via https to our sql server. The group appears as a User in SQL Server when you look at...
2
by: innesm | last post by:
Hi, Although I havent been able to find any documentation to confirm it, it looks like any change to a windows local group's membership is only reflected in the group editing UI (and the...
0
by: Melissa | last post by:
I have a grouped report with a subreport in the group footer. The report is set to start a new page for each group. All the labels for fields are in the group header and there is a subreport in the...
0
by: WALDO | last post by:
Assuming the following code: Dim strPattern As String = "(\d{3})(-)(\d{4})" Dim strMatch As String = "555-1234" Dim regExp As New RegEx(strPattern) Dim matches As MatchCollection =...
5
by: jacob.dba | last post by:
I have a table with first name, last name, SSN(social security number) and other columns. I want to assign group number according to this business logic. 1. Records with equal SSN and (similar...
1
by: JH | last post by:
Hi I am a fussy learner. Could someone explain to me why the following inconsistency exists between methods? How can it be justified if it is considered all right? There are three groups in...
3
by: Sebastian | last post by:
Hello all I have a report where I have two nested groups. I know there are only three standard options for running sum: None, Over Group and Over All. I have a MyTextBox in detail section where...
4
by: magedsql | last post by:
I am MCDBA, I like your group, and i need to join it as a member but i do NOT know How . Please help Thank You maged.
3
by: Dirk Hagemann | last post by:
Hi! Does anyone has experience with manipulating MS Active Directory objects? I'd like to delete some users from a group, but so far I couldn't find anything about this. There is some good...
4
by: Paul.Pucciarelli | last post by:
So I have some 'groups' which 'users' can join. There is no enrollment limit on these 'groups'. How should I store the list of users enrolled in the group? I'd like to be able to quickly...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.