Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2007, 06:05 PM
Authorized User
 
Join Date: Dec 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Muenchian grouping


I am trying to aplly xsl transfor on a Muenchian grouping logic involving keys.But i get error as below.
Do I need a special xslt procesor for this .I read that "xt" and pre May 2000 MSXML are not good.What parser should I use ?


Error.....

Invalid factory configuration
javax.xml.transform.TransformerConfigurationExcept ion: javax.xml.transform.TransformerConfigurationExcept ion: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: xsl:key is not allowed in this position in the stylesheet!

 
Old December 5th, 2007, 06:43 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I suspect this error means exactly what it says: you have used xsl:key in a position where it is not allowed. You must have a high confidence in your programming ability if you think this is a problem with the XSLT processor you are using.

It's true of course that there are processors released in the early days of XSLT 1.0 that didn't implement the spec fully. They are now a rarity. Your real question now is whether you should be moving on to XSLT 2.0. If you are doing transformations on the server the answer is almost certainly yes. That means you don't need to bother with Muenchian grouping any more, you can use xsl:for-each-group.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
help with Muenchian method grouping and html table mickhughes XSLT 3 May 1st, 2008 06:24 AM
help with Muenchian method grouping... agentdz015 XSLT 1 April 7th, 2008 04:53 PM
Muenchian Grouping Chamkaur XSLT 1 June 21st, 2006 10:51 AM
Advanced Grouping Using the Muenchian Method Bodiam XSLT 0 August 8th, 2005 11:33 AM
Grouping XML by Muenchian Method - Urgent :-( xrow XSLT 5 September 28th, 2004 04:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.