[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: JDK 1.4 <> 5.0 transformation compatibility

Subject: Re: JDK 1.4 <> 5.0 transformation compatibility
From: Kai Hackemesser <kaha@xxxxxx>
Date: Fri, 15 Jun 2007 14:52:09 +0200
Re:  JDK 1.4 <> 5.0 transformation compatibility
Hi David,

you are right, but it's my failure, because it happend when reducing the example for the mail to the minimum. Actually I was using generateId($currentIR) in that line. The original transformation works here - but only in Xalan.

Kind regards,

David Carlisle schrieb:
I can't comment on the different results on different processors, but
your use of key() looks suspect. In Muenchian grouping you typically use
equivalent expressions in the use attribute of the key, and in the
generate-id(key(...)) construct in the select filter.

but you have:

<xsl:key name="IRNCategory" match="IR/N" use="concat(generate-id(..) , string(Category))"/>

so the key is using the concatenation of an id of an IR (the parent
of N) node and the string value of the N's first Category child.

but later you have:

                    <xsl:variable name="currentIR" select="."/>
so I assume the current node is an IR nnode
                    <xsl:variable name="categories"
generate-id(key('IRNCategory', concat(generate-id(.) ,

inside the predicate  . is an N node so here the key is looking up the
key using the concatenation of the id of N and the string value of its
first Category child. So I'd expect this call on key() never to return
any nodes.

I would guess that you want concat(generate-id(current()) here or
concat(generate-id(.) in xsl:key definition (depending on what the
grouping criterion is)


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.