Transform errors with xsl:include

2001-07-02 Thread Etienne Deleflie
Hi, I have created a URIResolver which seems to work fine, but I keep getting transform errors from the included xsl file (when there should not be) The URIResolver is set to the TransformerFactory:- TransformerFactory factory = TransformerFactory.newInstance(); factory.setURIResolver(uriResolv

RE: XalanTransformer problem

2001-07-02 Thread David_N_Bertoni
Our doc writer is already aware of the problem, it's just that he's been busy with the latest Xalan Java release. The correction should be posted sometime soon. Dave "Pete

RE: XalanTransformer problem

2001-07-02 Thread Peter Murphy
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > It's a documentation bug -- use XercesDOMSupport instead of > DOMSupportDefault. > > Agreed: this code sample is well overdue for repair. I might even take a whack at correcting it, except that I'm uncertain h

[Bug 2425] New: - document() method accesses URIResolver multiple times

2001-07-02 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2425 *** shadow/2425 Mon Jul 2 16:59:07 2001 --- shadow/2425.tmp.515 Mon Jul 2 16:59:08 2001 *** *** 0 --- 1,27 + ++ + | document() method accesses

cvs commit: xml-xalan/test/java/src/org/apache/qetest/trax LoggingURIResolver.java

2001-07-02 Thread curcuru
curcuru 01/07/02 16:50:28 Modified:test/java/src/org/apache/qetest/trax LoggingURIResolver.java Log: Update logging to use a common logElement type; makes it easier to see what's getting logged when; also ensure logElement is always called before check() so that results coloring

Re: [GUMP] Xalan2 Smoketest Failure

2001-07-02 Thread Sam Ruby
Shane Curcuru wrote: > > I'd supply patch files for GUMP (now that I remember where it's source > lives) but I still don't have an easy way to checkout jakarta projects! > Yes, I know about anoncvs: but how do I make that work through our > corporate firewall? (You can assume it's a fairly restri

Re: Loading *.xsl into memory

2001-07-02 Thread Shane_Curcuru
What Joseph said, above, except: -- Create and cache a Templates object, not a Transformer. Templates are thread-safe in-memory representations of stylesheets. You then call templates.newTransformer() every time you need a Transformer (which should be pretty cheap); you can then keep each Trans

Re: [GUMP] Xalan2 Smoketest Failure

2001-07-02 Thread Shane_Curcuru
Well, the CVS update failed, so this test run is out of date anyway today: (more notes follow) http://jakarta.apache.org/builds/gump/2001-07-02/cvs_xml-xalan.html Mon Jul 2 08:12:44 EDT 2001

Re: Loading *.xsl into memory

2001-07-02 Thread Joseph_Kesselman
If you just want to load the _files_ into memory, you could implement and plug in an EntityResolver which includes caching logic. But more typically, what you'd do is pre-build the stylesheets and cache those as objects in ready-to-run form. This is (slightly misleadingly) described as "compiled

RE: Loading *.xsl into memory

2001-07-02 Thread Jeff Barr
What you want to do is to create a compiled style sheet, and then use it more than once. Assume the following declarations: XSLTInputSource xisXML = new XSLTInputSource(...); XSLTInputSource xisXSL = new XSLTInputSource(..); XSLTResultTarget resultPw = new XSL

cvs commit: xml-xalan/java/bin xerces.jar

2001-07-02 Thread dleslie
dleslie 01/07/02 14:47:53 Modified:java/bin xerces.jar Log: Xerces 1.4.1 Revision ChangesPath 1.12 +18159 -3118xml-xalan/java/bin/xerces.jar <> - To unsubscribe, e-mail: [EMAIL PRO

unusual output for Xalan C++

2001-07-02 Thread Matthew L. Avizinis
The following text is sent to the below template. I am using Xalan C++ 1.1.0 testXSLT.exe.   A private pilot flying a magnetic heading of 185° on a VFR cross country flight tracking outbound on the 177° radial of a VOR above 3,000 ft. AGL should maintain an odd, not even, thousand ft. MSL a

Loading *.xsl into memory

2001-07-02 Thread Dorsey, Chris
We are currently using xalan-j_1_2_2. I have heard that you can load your *.xsl files into memory, so that you don't have to read them from disk every time. Is this true? If so, how is this accomplished? Thanks in advance for your help, Chris Dorsey

cvs commit: xml-xalan/java build.xml

2001-07-02 Thread dleslie
dleslie 01/07/02 13:47:59 Modified:java build.xml Log: Version 2.2.D6 Revision ChangesPath 1.115 +2 -2 xml-xalan/java/build.xml Index: build.xml === RCS file: /home/cvs/xml-xalan/java/b

cvs commit: xml-xalan/java/xdocs/sources entities.ent xalan-jsite.xml

2001-07-02 Thread dleslie
dleslie 01/07/02 13:47:45 Modified:java/xdocs/sources entities.ent xalan-jsite.xml Log: Version 2.2.D6 Revision ChangesPath 1.28 +4 -4 xml-xalan/java/xdocs/sources/entities.ent Index: entities.ent =

cvs commit: xml-xalan/java/src/org/apache/xalan/res XSLTInfo.properties

2001-07-02 Thread sboag
sboag 01/07/02 12:51:25 Modified:java/src/org/apache/xalan/processor XSLProcessorVersion.java java/src/org/apache/xalan/res XSLTInfo.properties Log: Up the development version number to 6. Revision ChangesPath 1.21 +1 -1 xml-xalan/java/src/org

[Bug 1690] - Threads are left running after transformation completes

2001-07-02 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1690 *** shadow/1690 Sun May 20 17:27:06 2001 --- shadow/1690.tmp.28384 Mon Jul 2 12:45:20 2001 *** *** 1,19 ! Bug#: 1690 ! Product: XalanJ2 ! Version: 2.0.1 ! Platform: PC ! OS/Version: Linux ! Status: NEW ! Resolution:

cvs commit: xml-xalan/java/src/org/apache/xml/dtm/ref/sax2dtm SAX2DTM.java

2001-07-02 Thread sboag
sboag 01/07/02 12:39:42 Modified:java/src/org/apache/xml/dtm/ref/sax2dtm SAX2DTM.java Log: Just check for null for the prefix in start/endPrefix mapping, and resolve it to "" if it is null. The SAX2 javadoc is not explicit that it should be "" for the default namespace, so th

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

2001-07-02 Thread Scott_Boag
> I'm not 100% sure, but it looks like the current > SAX2DTM code expects to be passed both, and I can imagine that Cocoon might > be trying to take the shortcut... The code should work fine if passed only startPrefixMapping and endPrefixMapping events. I just wrote a small test for this, and e

Re: Xalan 1.1 on AIX with g++

2001-07-02 Thread David_N_Bertoni
Hmm, we've never built Xalan on AIX using g++. It could be a compiler bug, a bug in your code, or a bug in the Xalan code. Is the crash in XalanDOMString's copy constructor? Does this happen inside of Xalan, or in your own code? Dave

Re: indexed elements

2001-07-02 Thread David_N_Bertoni
Can you explain more what you mean by index? Do you mean the order of the element in the parent's children? In general, there is no "context" maintained after an XPath is executed. You could write some DOM code to get the parent from the node, then walk the parent's child list to find the posit

Xalan 1.1 on AIX with g++

2001-07-02 Thread Laidlaw, Angus
Title: Xalan 1.1 on AIX with g++     Is anybody using Xalan-c 1.1 on AIX 4.3.2 built with g++?   I am having problems     when a function returns a XalanDOMSString.  Sometimes     XalanDOMSString val = function();     works, sometimes it segmentation faults.  If I make &val

Re: XalanTransformer problem

2001-07-02 Thread David_N_Bertoni
It's a documentation bug -- use XercesDOMSupport instead of DOMSupportDefault. If you're going to do this, make sure you take a look at previous threads on this topic in the archives. The most important thing is that you should do modifications through the Xerces DOM APIs, and make sure that yo

Re: Xalan Build

2001-07-02 Thread David_N_Bertoni
We've never supported or built Xalan on Intel hardware, so yes, you'd certainly have to change big-endian to little-endian. If you can give more information about the exception, we might be able to help. Dave

Re:

2001-07-02 Thread Gary L Peskin
Jeff -- In XalanJ 2.2.D02 and later, we've added a new output property so that you can change your stylesheet to include this xalan extension attribute as follows: where the xalan namespace is declared as: xmlns:xalan="http://xml.apache.org/xslt"; You'd have to build these releases yours

indexed elements

2001-07-02 Thread Charlie Hart
I have an indexed element like: When I get a nodeRefList of all changed child elements using xpath, I will get element 2. I want to update the same element in another document. How can I find the index of the elements I retrieve? thanks...charlie

xalan-dev@xml.apache.org

2001-07-02 Thread Jeff Winter
Title: Is there anyway to turn off the tag that get's inserted in the output document?  Rendering documents in Netscape with this tag in place is problematic.   I would like to do the "correct" thing and set this HTTP header on the server. Why is there no option to turn this off?

Re: DTMDefaultBase & DTMDefaultBaseIterator

2001-07-02 Thread John Gentilin
I guess not, a couple of false starts here a little on the frustrating side but I will get over it. Fortunately it is basically what I have now, just one less object. Good News is that I have all this modeled in MagicDraw, the class & Sequence diagrams should make it easier for the next travelers.

Re: Xalan build on Solaris 8

2001-07-02 Thread David_N_Bertoni
Those compilation errors don't make sense. Sun Workshop 4.2, the compiler we support, does not support namespaces. If you're using a later compiler, you'll have to modify SolarisDefinitions.hpp. Also, you won't need the STLport for later compilers. Did you install the ICU properly? Make sure

Xalan Build

2001-07-02 Thread Marvin Wright
Hi ! I built Xalan on a Intel Solaris machine and when I run a program with the library compiled in it coredumps with an Arithmetic Exception. I had a look at the SOLARIS definitions and see that it assumes BIG ENDIAN for sparc, I did recompile with LITTLE ENDIAN, but did not make any differenc

[GUMP] Xalan2 Smoketest Failure

2001-07-02 Thread Sam Ruby
This email is autogenerated from the output from: Buildfile: build.xml prepare: compile: [echo] compile ent

Re: Namespace Problem in XPath

2001-07-02 Thread David_Marston
Shruti writes: >I am querying the following xml document using the xpath expression >//my:book . >It does not return anything > >xmlns:my="http://www.placeholder-name-here.com/schema/";> > ... Does the "my" prefix map to the same URI in the stylesheet? For more help, try the XSL-list

cvs commit: xml-xalan/java/xdocs/sources/xalan index.xml xsltc_constraints.xml

2001-07-02 Thread dleslie
dleslie 01/07/02 07:31:25 Modified:java/xdocs/sources/xalan index.xml xsltc_constraints.xml Log: Version 2.2.D5 Revision ChangesPath 1.26 +1 -1 xml-xalan/java/xdocs/sources/xalan/index.xml Index: index.xml

cvs commit: xml-xalan/java/xdocs/sources entities.ent xalan-jlocal.xml xalan-jsite.xml

2001-07-02 Thread dleslie
dleslie 01/07/02 07:31:03 Modified:java/xdocs/sources entities.ent xalan-jlocal.xml xalan-jsite.xml Log: Version 2.2.D5 Revision ChangesPath 1.27 +4 -4 xml-xalan/java/xdocs/sources/entities.ent Index: entities.ent

cvs commit: xml-xalan/java/src/org/apache/xalan/res XSLTInfo.properties

2001-07-02 Thread dleslie
dleslie 01/07/02 07:30:32 Modified:java/src/org/apache/xalan/res XSLTInfo.properties Log: Version 2.2.D5 Revision ChangesPath 1.17 +1 -1 xml-xalan/java/src/org/apache/xalan/res/XSLTInfo.properties Index: XSLTInfo.properties ==

cvs commit: xml-xalan/java/xdocs/sources/xalan index.xml

2001-07-02 Thread dleslie
dleslie 01/07/02 06:59:36 Modified:java/xdocs/sources/xalan index.xml Log: Update on DTM Revision ChangesPath 1.25 +1 -1 xml-xalan/java/xdocs/sources/xalan/index.xml Index: index.xml === R

Re: inconsistent results with xalan-j 2

2001-07-02 Thread Scott_Boag
It's hard to debug it from here. Are you reusing Transform objects? Is threading involved? If I were to guess, I would suspect the inconsistent results are caused by the racing threads in the Stree/Transform. Since you are on a short timeframe, it might be worth building the latest code from

Re: DTMDefaultBase & DTMDefaultBaseIterator

2001-07-02 Thread Scott_Boag
What Joe said. We wanted DTMTraverser and DTMIterator to have direct access to the internals of DTMDefaultBase. Does derivation from DTMIterator present problems to the SQL DTM? -scott

cvs commit: xml-xalan/java/xdocs/sources/xalan readme.xml STATUS

2001-07-02 Thread dleslie
dleslie 01/07/02 06:44:28 Modified:java/xdocs/sources/xalan readme.xml Removed: java/xdocs/sources/xalan STATUS Log: Moved STATUS into readme.xml and added bug fix. Revision ChangesPath 1.42 +8 -3 xml-xalan/java/xdocs/sources/xalan/readme.xml Index:

Re: in-memory transformation question

2001-07-02 Thread Joseph_Kesselman
See the DOM2DOM and SAX2SAX sample programs. Or, if you need XML text form, set up string readers/writers as your input and output streams, and read from/write to those

Re: DTMDefaultBase & DTMDefaultBaseIterator

2001-07-02 Thread Joseph_Kesselman
The classnames are somewhat misleading. Think of DTMDefaultBaseTraverser as DTMDefaultBasePlusBaseTraversers, and derive your DTM implementation from that rather than directly fromDTMDefaultBase. Note that this is what we did for the DOM2DTM and SAX2DTM implementations.

Re: [Bug 2230] New: - Method newTransformer(javax.xml.transform.Source) should not return null, but does so

2001-07-02 Thread Bjoern Martin
>+ According to the apidocs [1], the method >+ javax.xml.transform.TransformerFactory.newTransformer >+ (javax.xml.transform.Source) is not supposed to return null under >+ any circumstances. But if you assign an error listener [2] to this >+ class _before_ you try to get an instance of a transf

Re: in-memory transformation question

2001-07-02 Thread Bjoern Martin
> Hi all. Hi. > I have very simple task. I need to build a XML document in the > memory and transform it into another XML document without using > file system. I haven't found suitable functions to do it. Even > in the example "from input stream to output stream" they use > fileID parameter and

in-memory transformation question

2001-07-02 Thread Roman Rytov
  Hi all. I have very simple task. I need to build a XML document in the memory and transform it into another XML document without using file system. I haven't found suitable functions to do it. Even in the example "from input stream to output stream" they use fileID param

Namespace Problem in XPath

2001-07-02 Thread shruti
Hi,   I am querying the following xml document using the xpath expression - //my:book . It does not return anything . how do we resolve namespaces using xalan xpath api.   Who's Who in TrentonRobert Bob     Seven Years in Trenton        Joe    Bob   

Re: XalanTransformer problem

2001-07-02 Thread Ciprian Ungureanu
Hi David, I'm asking you again a question: in the documentation it is written that you can work with DOM input and output for the compile stylesheet. If I follow the example like this: DOMParser theParser; theParser.parse("foo.xml"); const DOM_Document theDOM = theParser.getDocument(); // Set u