Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - xsl:for-each-group error... >Thread Next - Re: xsl:for-each-group error... Re: xsl:for-each-group error...To: NULL Date: 9/11/2007 6:36:00 PM hzgt9b wrote: > I am a bit of a newbie to XSLT and am feeling my way around. Here is a > sample I found on the internet that I am trying to replicate on my > machine but am having problems. Specifically, the "<xsl:for-each- > group" element gets an error: "Keyword xsl:template may not contain > xsl:for-each-group ". I can find documentation for this element, so > I'm a bit lost as to the source of the problem. Anyone have any ideas. > See my XML ans XSL files below: > <?xml-stylesheet type="text/xsl" href="test.xsl"?> That suggests you are trying to let a browser apply the XSLT transformation. However your stylesheet > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="2.0"> > <xsl:template match="/"> > <table> > <xsl:for-each-group select="cities/city" group-by="@state"> <!--I can is an XSLT 2.0 stylesheet and xsl:for-each-group is an XSLT 2.0 instruction while XSLT processors in browsers like IE, Mozilla, Opera 9, Safari 2 only support XSLT 1.0. If you need an XSLT 2.0 processor try Saxon 8.9 from <URL:http://saxon.soureforge.net/> If you want to use a browser then you will have to stick with XSLT 1.0. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
