matching simple XPaths with XPath expressions

2001-07-06 Thread Nikolaos Giannadakis
Dear all, is there any way I could check whether simple Xpath expressions (such as /A/B/C ) are instances of more complicated XPath expressions (such as //C), using the xalan API? For instance, /A/B/C is an instance of /A//C, while /F/C is not. thank you, nikolas/

Re: Extension Function returns

2001-07-06 Thread John Gentilin
Oops sorry about that, I keep forgetting that Process hides exception info unless you ask nicely :) Here you go file:///home/gentijo/jbproject/Xalan/mkay.xsl; Line 24; Column 73; javax.xml.transform.TransformerException: Unknown error in XPath at org.apache.xalan.transformer.TransformerImpl.tra

Re: Extension Function returns

2001-07-06 Thread Scott_Boag
OK, this is a different error. As I said, I anticipated a few more problems. Can you send me a stack dump? -scott John Gentilin

Re: java extension function not found

2001-07-06 Thread Gary L Peskin
Hi, Noel -- The quoting looks fine. The message in the traceback was a little confusing. I'm not sure what the problem is for sure since I'm pretty wrapped up in hot project. However, the following two things come to mind: 1. The java.text.SimpleDateFormat.new call does not have a namespace

Re: Extension Function returns

2001-07-06 Thread John Gentilin
Scott, Different error this time but the same for either type of return. What code are you looking into ?? The function still gets called, just has a bad return value. Now all the other functions i.e. New & Connect work fine. It is just query at this point. Error; file:///home/gentijo/jbprojec

Re: java extension function not found

2001-07-06 Thread Noel L Yap
The line in question is: AFAICT, there's no problems with quoting. Am I misunderstanding your post? I've wanted to upgrade, but I haven't had time to be able to test 2.x and push it out to production. Noel |+---> || | |

Please bear with me one more time

2001-07-06 Thread Matthew L. Avizinis
I posted what I think to be a Xalan2 defect recently, but I at that time it was not obvious to me how to subscribe to this mailing list so I do not know if anyone has responded to my query.  I find also that the archives are not currently available.  Consequently I have no way of know if any

Re: java extension function not found

2001-07-06 Thread Gary L Peskin
It looks like you've used the apostrophe (') delimiter to start your pattern and start the literal MM/dd/ which ends the pattern. this is why the error message is so strange. Try using quotes where the nested apostrophes are now. Also, it would be best to upgrade to a current release of Xal

RE: Xalan 2.2.0D6 has great performance gain!

2001-07-06 Thread Joseph_Kesselman
Forgot to mention: There's a tiny bit of additional info about DTM at http://xml.apache.org/xalan-j/whatsnew.html#dtm and http://xml.apache.org/xalan-j/readme.html#dtm

java extension function not found

2001-07-06 Thread Noel L Yap
I think others have reported this recently, so please point me to the archives if this is a repeat. First off, I'm using xalan-j version 1.2.2 on a command line. I've been able to get this to work before so I don't know what's wrong. I've attached my xsl. Here's the output: nyap.jpmpsdev@jpmps

RE: Xalan 2.2.0D6 has great performance gain!

2001-07-06 Thread Joseph_Kesselman
DTM's still evolving rapidly, and we haven't really had time to document it properly. Start by reading http://xml.apache.org/xalan-j/dtm.html Past that point, the javadoc and other comments in the source are all we've got right now. You might also want to try searching the archives of this d

RE: Xalan 2.2.0D6 has great performance gain!

2001-07-06 Thread Li Liang
Hi, Scott, I am really interested in the implementation of DTM, can you please tell me where I can find more documents about this? The one on Apache's website is pretty plain. Or some messages on this list, at least, which class I can start? Many thanks. Li -Original Message- From: [EM

Re: Extension Function returns

2001-07-06 Thread Scott_Boag
I think I have fixed your problem with the checkin I just did. Please give it a try. Frankly, I will not be surprised if there are more problems as you are on a bit of a new codepath. -scott

Re: something funny with namespaces and xalan2.2dev (fwd)

2001-07-06 Thread Scott_Boag
I'm going to reply to this in http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2445. -scott Donald Ball

[Bug 2175] - non unique method key for java extensions

2001-07-06 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2175 *** shadow/2175 Thu Jun 14 07:32:22 2001 --- shadow/2175.tmp.18803 Fri Jul 6 11:32:19 2001 *** *** 9,15 ++ | Assigned To: [EMAIL PROTECTE

[Bug 2471] - ClassCast Exception with ExtensionHandlerJava::getFromCache

2001-07-06 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2471 *** shadow/2471 Fri Jul 6 01:25:53 2001 --- shadow/2471.tmp.18795 Fri Jul 6 11:32:17 2001 *** *** 2,9 | ClassCast Exception with ExtensionHandlerJava::getFromCache | +---

cvs commit: xml-xalan/java/src/org/apache/xpath/functions FuncExtFunction.java

2001-07-06 Thread sboag
sboag 01/07/06 11:29:17 Modified:java/src/org/apache/xpath/axes ChildTestIterator.java OneStepIterator.java java/src/org/apache/xpath/functions FuncExtFunction.java Log: Fix for John G. for the SQL extension: handle return types of DTM and

[Bug 2468] - AbsoluteIterator.setStartNode(int) not sufficient to initialize a NodeIterator.

2001-07-06 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2468 *** shadow/2468 Thu Jul 5 17:00:57 2001 --- shadow/2468.tmp.18735 Fri Jul 6 11:17:39 2001 *** *** 123,125 --- 123,137 --- Additional Comments From [EMAIL PROTECTED] 2001-07-05 17:00 --- Created an at

[Bug 2445] - Omitting nodes when more than one namespace is used

2001-07-06 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2445 *** shadow/2445 Thu Jul 5 23:30:40 2001 --- shadow/2445.tmp.17681 Fri Jul 6 09:37:22 2001 *** *** 211,213 --- 211,245 --- Additional Comments From [EMAIL PROTECTED] 2001-07-05 23:30 --- Yeah. It i

Re: What version of Xalan in JDK 1.4 Beta?

2001-07-06 Thread Scott_Boag
There have been a couple 1.4 betas that have gone out, so I'm not sure. I think Costin, who is on vacation this week and maybe next, can answer your question. I know he is trying to get the DTM stuff in on the next beta. > What is the general performance > (in terms of footprint and speed) inc

Re: Xalan 2.2.0D6 has great performance gain!

2001-07-06 Thread Scott_Boag
> Is this > because of the usage of DTM? In some ways it is unfortunate that there are several changes from 2.1.0 to 2.2.0D6, so it's a little hard to tell exactly where the exact improvement is. There is some element indexing in the DTM that might account for this. Also, the iterators were rew

cvs commit: xml-xalan/java/src/org/apache/xalan/serialize SerializerToXML.java

2001-07-06 Thread sboag
sboag 01/07/06 08:48:45 Modified:java/src/org/apache/xalan/serialize SerializerToXML.java Log: Make accumDefaultEntity and accumDefaultEscape non-final. Revision ChangesPath 1.9 +2 -2 xml-xalan/java/src/org/apache/xalan/serialize/SerializerToXML.java I

RE: XSLTC: creating a translet (template) object from a precompiled translet ( .class file)

2001-07-06 Thread Paul O'Neill
Hi, I have just noticed that it is possible to construct a Transformer from a Translet class name Class transletClass = Class.forName(getFileNameNoExtension(XSLinURI)); Transformer transformer = (Transformer)transletClass.newInstance(); transformer.transform(X

Xalan 2.2.0D6 has great performance gain!

2001-07-06 Thread Li Liang
Hi, I've tried the 2.2D6 with my xml/xsl pair, here's the result: 2.1 22 Seconds 2.2 4 Seconds The xml is 13k, xsl has some "//foo/bar". This is HUGE gain. Is this because of the usage of DTM? If it is, I really like to know some benchmark numbers about it, and where can I find more de

Re: xalan-j 2.2-D6

2001-07-06 Thread Shane Curcuru
Hmmm - this is probably because 'build dist' now issues a warning during the task about several of the doc files being longer than 100 chars of path/filename, and only GNU-compatible tar utilities will work with it. Can you update your version of tar or can you simply get the .zip file instead?

BUG: 1379 - namespace axis support

2001-07-06 Thread John Keyes
Hi, The application I am writing very much depends on using XSLTC to produce Java class files rather than ship plain text XSLT. Support for the namespace axis is required. I see that the problem is that org.apache.xalan.xsltc.dom.DOMImpl does support namespace nodes and as such the namespace axi

Re: How to serialize recursively the content of one node into a Strin gwith Xalan J2

2001-07-06 Thread Joseph_Kesselman
>For example, if I have the following node : > >bla bla > >I want to get the following string : "\nbla >bla\n" Possible, yes. Trivial, no. What I'd try would be create a set of templates that understand how to render XML structure as XML text, put those i

Re: [Xalan-J 2.2.0D6]: Strange problems with DOM and XPath

2001-07-06 Thread Joseph_Kesselman
The problem is happening during incremental construction of the DTM model. It's trying to retrieve information which has not yet been stored, specifically, the expanded type information for a node which hasn't yet been written into the tables. But unless we can provoke it under a debugger, I real

[Xalan-J 2.2.0D6]: Strange problems with DOM and XPath

2001-07-06 Thread Carsten Ziegeler
Hi, we are heavily using DOM and DocumentFragments. From time to time we get an exception when we use namespaces in the DOM and query it with the XPathAPI. Unfortunately I can't build a simple testcase as the DOM is build up during an application. Each step the user makes acts on the dom. Most t

Re: Addition of a new function

2001-07-06 Thread shruti
Can i use this tokenize function in an XPath query .. if yes, where do i register the xalan namespace in the evaluation contexti am evaluating the xpath expression using XPathAPI.eval(doc,xpath); If i give the following xpath expression //book[.=xalan:tokenize(hello ho)], it gives an err

How to serialize recursively the content of one node into a String with Xalan J2

2001-07-06 Thread MAHE Vincent FTRD/DIH/REN
Is it possible to serialize as a java string the content of one node and all its descendants ? For example, if I have the following node : bla bla I want to get the following string : "\nbla bla\n" Thanks. Vincent Mahe

[Bug 2446] - IE5 requires that the div element is not indented

2001-07-06 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2446 *** shadow/2446 Thu Jul 5 13:51:17 2001 --- shadow/2446.tmp.12805 Fri Jul 6 02:04:06 2001 *** *** 26,29 In order for me to consider fixing this, I will need a testcase which produces an HTML document that you fee

RE: XSLTC: creating a translet (template) object from a precompiled translet ( .class file)

2001-07-06 Thread Christian Sunesson
I've been awaiting an answer to your question for a while, because I want something similar. I would like to look up a Translet class name, and construct a Templates object from that, thus eleminating compilation. What have stopped me so far is that I do not want to put effort into a solution th

[Bug 2471] New: - ClassCast Exception with ExtensionHandlerJava::getFromCache

2001-07-06 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2471 *** shadow/2471 Fri Jul 6 01:25:53 2001 --- shadow/2471.tmp.12655 Fri Jul 6 01:25:53 2001 *** *** 0 --- 1,33 + ++ + | ClassCast Exceptio