Re: [jira] [Commented] (XALANJ-2527) NPE during transforation - com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform

2012-02-15 Thread keshlam
> AttributeImpl is a helper class in SAX. Its addAttribute() method is namespace-aware. Sorry; missed that. Good. (I've spent too much time educating people about this since DOM2 came out; it's an automatic playback trigger. Sigh.) __ "You build world of s

Re: [jira] [Commented] (XALANJ-2527) NPE during transforation - com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform

2012-02-15 Thread keshlam
> This issue can happen in JDK 6 if an Attribute is created with SAX > AttributeImpl addAttribute() method and a "type" string argument of Quick reminder: NOBODY should still be using the addAttribute() method unless you are explicitly writing DOM 1.0 code. It is not interoperable with DOM 2.

Re: jdk 1.6 and Xalan.jar differences

2011-11-29 Thread keshlam
Whose JDK? IBM's JDK 6 (ships with some of IBM's products, though I believe it's not available separately) uses an interpreter derived from Xalan-J, and a compiler which is new code. Sun's JDK 6, as far as I know, still uses a very outdated and relatively buggy copy of Xalan-J for both interpr

Re: Issue related to Stream Transform on Windows.

2011-10-05 Thread keshlam
The compiler is telling you that you're passing in the wrong kind of string. The function expects XMLCh chararacters, not XalanDOMChar characters. __ "You build world of steel and stone I build worlds of words alone Skilled tradespeople, long years taught: Yo

Re: Issue related to Stream Transform on Windows.

2011-10-05 Thread keshlam
First step: Can you build and run without your change? If so: The code thinks your change is incorrect, since it is having unintended effects. Ask whether you really need this change at all, and/or whether there's another way to accomplish what you need. You SHOULDN'T have to patch code to hand

Re: Has anyone cross compiled Xalan

2011-08-19 Thread keshlam
Sanity check: I presume you're asking about Xalan for C++, since the Java code would not require cross-compilation. Theoretically, it should be just like cross-compiling to any other platform: Get the cross-compiler. Figure out what options to set in the code in order to match that machine's a

Re: Solution about merging PsychoPath with Xalan to get XSLT 2.0 features

2011-06-27 Thread keshlam
Michael Glavassevich wrote on 06/27/2011 12:44:36 AM: > If the intention is to contribute the code to Xalan, in my opinion > it would be better for the effort to be here. Folks interested in > contributing can become committers. +1000. It isn't hard to work with the Apache development environm

Re: What does popRTFContext() do?

2011-06-20 Thread keshlam
> I would not use XML and XSLT for PDF document pagination. > I instead use XSLT to convert XML into a LaTex markup language and then > let the underlying troff/groff processors generate the actual content for > printing and publishing. For what it's worth, something very similar to that was the

Re: Quesiton about old Xalan-C code

2010-12-18 Thread keshlam
Unfortunately this is actually an issue in a back-level version of our internal branch of Xalan-C, which limits what I can tell/show you. (Actually, given the symptoms we're seeing, I wouldn't bet against a wild pointer in the customer's code -- they're seeing SIGILL one one platform and SIGSEG

Quesiton about old Xalan-C code

2010-12-16 Thread keshlam
Just trying this on the chance that someone might recognize it... Does anyone happen to remember a Xalan-C bug which caused the creation of temporary trees which had no DocumentFragment root node, and if so do you happen to remember what caused it? (Can't switch the customer to current Xalan-C.

Re: [jira] Created: (XALANJ-2523) Element containing only empty text serialized as element with whitespace when using DOM3 LS format-pretty-print

2010-10-01 Thread keshlam
By turning the pretty-printing flag on, you gave the system permission to inject whitespace to indent the elements nicely. If that isn't what you wanted, don't request it __ "... Three things see no end: A loop with exit code done wrong, A semaphore untes

Re: [jira] Created: (XALANC-704) Branch target offset too large for short; Could not compile stylesheet

2010-08-16 Thread keshlam
Usually what this error means is that you have a single xsl:template which is excessively complex. There's a Java limitation on how large a single method may be, and a template starts out as a single method. Xalan's code generation attempts to modularize excessively large functions, but it loo

Are there regression tests for Xalan-C XPath API?

2010-06-22 Thread keshlam
It's been too many years since I've looked at this code... I found the XSLT tests, but haven't found XPath API tests yet, outside of the most basic sorts of formulas. Do they exist, and if so how does one launch them? __ "... Three things see no end: A loop

Re: problem in disable-output-escaping

2010-04-02 Thread keshlam
If you're outputting in UTF-8, it can express all of Unicode directly (as two- or three-byte sequences if necessary), so Numeric Character References generally won't be needed and won't be produced. If you set the output encoding to ASCII rather than UTF-8, any characters over 127 will be escap

Re: implement XPath 2.0 function for xalan

2010-04-01 Thread keshlam
> 1) PsychoPath is not "streamy" yet Nor is Xalan, really. We have some ability to do deferred loading of the document, but real streaming is one of those "always wanted, never got around to" projects. It's a _big_ challenge. > 2) Type informations is not part of current interfaces. True. One

Re: Advanced Extension Element Question

2009-11-16 Thread keshlam
> Is it that big an ask to be able to set a variable from an extension element? Specifically, to set a variable to something other than XPath-compatable data, since of course the syntax you show already works for result tree fragments... ... I'm really not sure. Probably worth drafting a prot

Re: Advanced Extension Element Question

2009-11-15 Thread keshlam
I'm still not sure I understand why you feel you have to express this as extension elements, when extension functions can already do what you (appear to) need? __ "... Three things see no end: A loop with exit code done wrong, A semaphore untested, And the ch

Re: Advanced Extension Element Question

2009-11-13 Thread keshlam
> Can anyone tell me if there's any way to add an object (not node or > tree fragment) variable to the variable stack from an extension element? >From an extension _element_... I don't think so. >From an extension _function_, yes. If the returned value is not an instanceof one of the types cal

Re: Xalan J Future

2009-11-13 Thread keshlam
> > If I were to write an xslt processor from scratch, I'd either drop DTM > > altogether, or have the transformation work on some interface which can > > be provided from both DOM and DTM. I'd also try to get some closer > > integration between the xslt interpreter and the xsltc compiler, i.e. >

Re: XalanJ future

2009-11-10 Thread keshlam
Better link to the IBM beta: http://webspherecommunity.blogspot.com/2009/07/xml-feature-pack-xpath-20xslt-20xquery.html Unfortunately, some of the folks who have been working on that are the same people who had previously been providing most of the active support for Xalan Of course Xa

Re: XalanJ future

2009-11-10 Thread keshlam
I believe David is referring to http://webspherecommunity.blogspot.com/2009/04/was-open-xml-feature-pack-beta.html __ "... Three things see no end: A loop with exit code done wrong, A semaphore untested, And the change that comes along. ..." -- "Threes" Rev 1

Re: Active Xalan-J committers?

2009-10-17 Thread keshlam
Search for "keshlam". That's Joe Kesselman. (IE, me.) I've become less active in part because I've been fully overcommitted (grin) to other projects. In general I've been waiting to let the community answer questions, and only throwing my two cents in if I can do

Re: help on EXLST function using Xalan

2009-10-13 Thread keshlam
What you're looking for is the xsl:number directive. Standard XSLT, not an EXSLT library function. __ "... Three things see no end: A loop with exit code done wrong, A semaphore untested, And the change that comes along. ..." -- "Threes" Rev 1.1 - Duane Elms

Re: Fw: [PMC VOTE] Electing a Xalan PMC Chair [Was "Brian Minchau is resinging as Apache Xalan PMC chairperson"]

2009-02-18 Thread keshlam
Second the nomination of the estimable Mr. Bertoni, if he's willing to take the job. Dave's been involved in Xalan more or less since it started, and has been the prime mover behind keeping Xalan-C alive. "The reward for doing a job well is that people want you to do even more of it..." ___

Re: [Encoding] Xalan-c API alternative to

2008-11-12 Thread keshlam
In Xalan-J, the solution would be to output to a SAX stream as UTF-8 or UTF-16, and then route that stream through a separate serializer which converts it to the appropriate encoding. It's been too long since I've looked at Xalan-C, but I presume something similar is possible there. ___

Re: [jira] Commented: (XALANJ-2454) ArrayIndexOutOfBoundsException when xalan-doc-cache-off

2008-09-30 Thread keshlam
I'm not sure if it's still there, but at one point we did experiment with an extension function which could be used to flush document()s out of the cache, specifically for those applications where a stylesheet is scanning through a document which itself is a long list of documents. If anyone kn

Re: Building Xalan-J in Eclipse

2008-09-10 Thread keshlam
The main trick to building Xalan in Eclipse is making sure that Eclipse finds the copy you're trying to build rather than the outdated one provided by the JVM. This can most easily be done by opening the Preferences, going down to Installed JREs, duplicating the entry for your preferred JRE, an

Re: Is turning off XSLTC template by default inlining OK ?

2007-09-20 Thread keshlam
I agree that the default for a new switch should probably be "the way it used to work before the switch was added" unless the new mode will be an improvement for most users. Defaulting to performance mode rather than debugging (I assume) mode makes sense to me. Second the motion to make this one d

Re: A new PMC member for Xalan?

2007-08-08 Thread keshlam
I'm not a PMC member, but given that Dave basically *is* the Xylem-C team I'd certainly consider this appropriate. __ "... Three things see no end: A loop with exit code done wrong, A semaphore untested, And the change that comes along. ..." -- "Threes" Rev 1

Re: Performance problem for Xalan-J on intel-dual core

2006-11-17 Thread keshlam
We've known for a while that some part of Xalan are oversynchronized, due to their use of the original Java heap and vector classes -- but we couldn't move to the unsynchronized 1.2 Collection classes because we were still committed to running on Java 1.1.8. Now that Xerces has given up compatabi

Re: Select-like attributes in extension elements?

2006-10-17 Thread keshlam
Just making sure I understand the question: Is the user looking for arbitrary XPath interpretation, similar to http://www.exslt.org/dyn/ or are they specifically looking for the equivalent of select? We do have an implementation of exslt:dyn, though of course it works only in interpretive mode a