Return-Path: Delivered-To: apmail-xml-xalan-j-users-archive@www.apache.org Received: (qmail 1624 invoked from network); 19 May 2004 08:54:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 May 2004 08:54:50 -0000 Received: (qmail 55480 invoked by uid 500); 19 May 2004 08:54:01 -0000 Delivered-To: apmail-xml-xalan-j-users-archive@xml.apache.org Received: (qmail 55151 invoked by uid 500); 19 May 2004 08:53:59 -0000 Mailing-List: contact xalan-j-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list xalan-j-users@xml.apache.org Received: (qmail 54907 invoked by uid 98); 19 May 2004 08:53:55 -0000 Received: from david.balch@continuing-education.oxford.ac.uk by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(129.67.1.163):. Processed in 0.170462 secs); 19 May 2004 08:53:55 -0000 X-Qmail-Scanner-Mail-From: david.balch@continuing-education.oxford.ac.uk via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(129.67.1.163):. Processed in 0.170462 secs) Received: from unknown (HELO tx0.oucs.ox.ac.uk) (129.67.1.163) by hermes.apache.org with SMTP; 19 May 2004 08:53:53 -0000 Received: from scan0.oucs.ox.ac.uk ([129.67.1.162] helo=localhost) by tx0.oucs.ox.ac.uk with esmtp (Exim 4.24) id 1BQMor-0002SR-FS for xalan-j-users@xml.apache.org; Wed, 19 May 2004 09:52:57 +0100 Received: from rx0.oucs.ox.ac.uk ([129.67.1.161]) by localhost (scan0.oucs.ox.ac.uk [129.67.1.162]) (amavisd-new, port 25) with ESMTP id 09179-09 for ; Wed, 19 May 2004 09:52:57 +0100 (BST) Received: from klipspringer.conted.ox.ac.uk ([163.1.204.117]) by rx0.oucs.ox.ac.uk with esmtp (Exim 4.24) id 1BQMor-0002S9-1H; Wed, 19 May 2004 09:52:57 +0100 Received: by klipspringer.conted.ox.ac.uk with Internet Mail Service (5.5.2657.72) id ; Wed, 19 May 2004 09:57:07 +0100 Message-ID: <9D26F7445E7CF0448267CA320343CC7B11A37F@klipspringer.conted.ox.ac.uk> From: David Balch To: 'Henry Zongaro' Cc: "'xalan-j-users@xml.apache.org'" Subject: RE: Problem with a $PARAM in a simple javascript extension Date: Wed, 19 May 2004 09:56:59 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Henry, > From: Henry Zongaro [mailto:zongaro@ca.ibm.com] > > Sorry for not responding earlier. I'm inclined to view Xalan's > current behaviour as correct. The value contained in the STYLE_NAME > parameter in the following call to the javascript function, > match, is a > node set: > > > > The semantics of converting a node set to a string within > javascript are > not necessarily well-defined. > > One might be tempted to say that the semantics should be > the same as > those in XPath: viz., take the first node in the node set, > and convert > that to a string. Yeah, that's what I assumed (assumption being the mother of all screw-ups :-) > However, when we get to XSLT and XPath 2.0, the > semantics will depend on whether a conversion to string is > considered to > behave as if performed using the fn:string function or using "cast as > xs:string". I'd like to forestall any discussion of how to > insinuate the > conversion operations for XPath node sets, result tree > fragments (and in > future, sequences and temporary trees) into the frameworks for other > scripting languages, and simply say that we won't try. That sounds like a good idea to me. > > If you explicitly cast the value to a string, you get > the behaviour I > believe you expected. > > > > I hope that helps. Bingo! just what I wanted :-) Many thanks for your help, Dave, > > Thanks, > > Henry > ------------------------------------------------------------------ > Henry Zongaro Xalan development > IBM SWS Toronto Lab T/L 969-6044; Phone +1 905 413-6044 > mailto:zongaro@ca.ibm.com > >