Re: Extension function and transformer handle

2005-01-24 Thread Robert Koberg
Henry Zongaro wrote: Hi, Marco. .. Use of extension functions - particularly user-defined extension functions - in XSLT is inherently not portable. It wasn't very helpful of me to point out that using ExpressionContext wouldn't be portable. Sorry about that. I don't have any suggestions

RE: Extension function and transformer handle

2005-01-24 Thread Henry Zongaro
Hi, Marco. "Marco Laponder" wrote on 2005-01-24 01:46:46 AM: > Thanks for you response. I did try to use the ExpressionContext > object by calling > the getVariableOrParam() function but it didn't find the param I set > on the transformer > (can't remember the exact message but I can look it up

RE: Extension function and transformer handle

2005-01-23 Thread Marco Laponder
lan-dev@xml.apache.org > Onderwerp: Re: Extension function and transformer handle > > > Hi, Marco. > > "Marco Laponder" <[EMAIL PROTECTED]> wrote on 2005-01-21 09:16:21 AM: > > Is it possible to get from an extension function and handle to the >

Re: Extension function and transformer handle

2005-01-21 Thread Henry Zongaro
Hi, Marco. "Marco Laponder" <[EMAIL PROTECTED]> wrote on 2005-01-21 09:16:21 AM: > Is it possible to get from an extension function and handle to the > transformer ? I need to get a parameter which is set onto the > transformer. I did aclompish this from an extension element but not > with an e

RE: Extension function and transformer handle

2005-01-21 Thread Marco Laponder
Xalan-Java, sorry for the missing information ;-) Kind regards, Marco Laponder [EMAIL PROTECTED] > -Oorspronkelijk bericht- > Van: Henry Zongaro [mailto:[EMAIL PROTECTED] > Verzonden: vrijdag 21 januari 2005 16:06 > Aan: xalan-dev@xml.apache.org > Onderwerp: Re: Extensi

Re: Extension function and transformer handle

2005-01-21 Thread Henry Zongaro
Hi, Marco. "Marco Laponder" <[EMAIL PROTECTED]> wrote on 2005-01-21 09:16:21 AM: > Is it possible to get from an extension function and handle to the > transformer ? I need to get a parameter which is set onto the > transformer. I did aclompish this from an extension element but not > with an e

RE: extension function

2002-08-14 Thread Rob Tice
the use of createElement(). Regards Rob Tice -Original Message- From: Joseph Kesselman [SMTP:[EMAIL PROTECTED]] Sent: 14 August 2002 15:10 To: [EMAIL PROTECTED] Subject: RE: extension function If you're creating text, you should probably design your extension to return a

RE: extension function

2002-08-14 Thread Joseph Kesselman
If you're creating text, you should probably design your extension to return a string and let us incorporate that into our own data stream. More efficient, and avoids the need to create a DOM node. __ Joe Kesselman / IBM Research

RE: extension function

2002-08-12 Thread Rob Tice
14:02 To: [EMAIL PROTECTED] Subject:Re: extension function Documented restriction. Xalan treats the input document as IMMUTABLE, as is required by the XSLT processing model -- you must not, and if you're using our standard data model (DTM) you simply can not, alter it. That inc

Re: Extension function write(...) (Xalan-C)

2002-03-28 Thread David N Bertoni/Cambridge/IBM
You must call startDocument() and endDocument() on FormatterListener's, or else the results are undefined. In the case of FormatterToXML(), the buffer will not be flushed. Of course, the results for FormatterToHTML are far more annoying! ;-) Dave |-+---> |

Re: Extension function write(...) (Xalan-C)

2002-03-28 Thread Holger Floerke
>The function is implemented as you see below. There are two problems. >1) If I use the "FormatterToHTML", the application crashes >2) If I use the "FormatterToXML", the output is cached and written in >"1024" byte chunks. So the file is shortened and broken. Sorry, I was too fast writing to the

RE: Extension Function Problem/Incompatible DocumentFragmentImpl implementations?

2001-09-23 Thread Gary L Peskin
structure. Gary > -Original Message- > From: Rick Bullotta [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 19, 2001 7:23 AM > To: [EMAIL PROTECTED] > Subject: RE: Extension Function Problem/Incompatible > DocumentFragmentImpl implementations? > > > T

RE: Extension Function Problem/Incompatible DocumentFragmentImpl implementations?

2001-09-19 Thread Rick Bullotta
-Original Message- From: Rick Bullotta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 9:31 AM To: [EMAIL PROTECTED] Subject: RE: Extension Function Problem/Incompatible DocumentFragmentImpl implementations? We'll be working on it today with a simpler example and some trace co

RE: Extension Function Problem/Incompatible DocumentFragmentImpl implementations?

2001-09-18 Thread Rick Bullotta
esday, September 18, 2001 9:22 AM To: [EMAIL PROTECTED] Subject: RE: Extension Function Problem/Incompatible DocumentFragmentImpl implementations? >unfortunately, the NodeList is garbage (getLength() returns only one node, >instead of the 19 expected). Without seeing an example, it'

RE: Extension Function Problem/Incompatible DocumentFragmentImplimplementations?

2001-09-18 Thread Joseph_Kesselman
>unfortunately, the NodeList is garbage (getLength() returns only one node, >instead of the 19 expected). Without seeing an example, it's hard to be sure whether the NodeList is wrong now, or was wrong before...

RE: Extension Function Problem/Incompatible DocumentFragmentImpl implementations?

2001-09-17 Thread Matthew L. Avizinis
ROTECTED] > Subject: Re: Extension Function Problem/Incompatible > DocumentFragmentImpl implementations? > > > > If your code is referencing STree, you're using a rather old version of > Xalan; we completely rearchitected the internal model some time ago. You > might want to try the experiment with a more recent copy...

RE: Extension Function Problem/Incompatible DocumentFragmentImpl implementations?

2001-09-17 Thread Rick Bullotta
A little more information. For the heck of it, we downloaded the D10 build, and (ignoring the many things that it broke!) it now passes a org.apache.xml.dtm.ref.DTMNodeList instance in both cases, but unfortunately, the NodeList is garbage (getLength() returns only one node, instead of the 19 exp

Re: Extension Function Problem/Incompatible DocumentFragmentImplimplementations?

2001-09-17 Thread Joseph_Kesselman
If your code is referencing STree, you're using a rather old version of Xalan; we completely rearchitected the internal model some time ago. You might want to try the experiment with a more recent copy...

Re: Extension Function returns

2001-07-08 Thread John Gentilin
Ok I am off but I had to cast the ExpressionContext to a DTMManagerDefault because the DTMManager does not define getFirstFreeDTMID() or addDTM(). Also a good JavaDoc hint would be that the DTMID returned needs to be shifted, although it may be better to provide that translation in the Manager in

Re: Extension Function returns

2001-07-07 Thread Scott_Boag
Gary L Peskin cc: (bcc: Scott Boag/CAM/Lotus) Subject: Re: Extension Function returns

Re: Extension Function returns

2001-07-07 Thread Gary L Peskin
John -- For now, you could cast the ExpressionContext to an XPathContext.XPathExpressionContext and use the getDTMManager() method, like this: public MyExtFunction(ExpressionContext xctxt, ...) { ... DTMManager manager = ((XPathContext.XPathExpressionContext) xctxt).getDTMManager(); ... } I'

Re: Extension Function returns

2001-07-07 Thread John Gentilin
etDTM(context);. > > [The interface for DTM registration obviously needs a lot of work.] > > -scott > > > John Gentilin > ing.com>cc: [EMAIL PROTECTED] > Sent by:

Re: Extension Function returns

2001-07-07 Thread Scott_Boag
cc: [EMAIL PROTECTED] Sent by:Subject: Re: Extension Function returns

Re: Extension Function returns

2001-07-06 Thread John Gentilin
ing.com>cc: Scott Boag ><[EMAIL PROTECTED]> > Sent by: Subject: Re: Extension Function >returns > [EMAIL PROTECTED] > tching.com > > >

Re: Extension Function returns

2001-07-06 Thread Scott_Boag
cc: Scott Boag <[EMAIL PROTECTED]> Sent by:Subject: Re: Extension Function r

Re: Extension Function returns

2001-07-06 Thread John Gentilin
: [EMAIL PROTECTED], >[EMAIL PROTECTED] > 09:37 PM Subject: Re: Extension Function >returns(Document link: Scott Boag) > > > > I think this is an easily fixed problem with the extension code. I'll look > into it first thing in the morning. > >

Re: Extension Function returns

2001-07-06 Thread Scott_Boag
[EMAIL PROTECTED], [EMAIL PROTECTED] 09:37 PM Subject: Re: Extension Function returns(Document link: Scot

Re: Extension Function returns

2001-07-05 Thread Scott_Boag
I think this is an easily fixed problem with the extension code. I'll look into it first thing in the morning. -scott John Gentilin