Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: xsl:for-each-group error...

From: Martin Honnen <mahotrash@-----.-->
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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent