Hi,

Before using Xalan-j2.2, I was using Xalan version 1.  Please refer to the
lines below.
        XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
        XSLTInputSource xslinput = new XSLTInputSource(new
FileInputStream(new File(styleSheetPath, sheetLocation)));
        StylesheetRoot root = processor.processStylesheet(xslinput);

After executing these lines of code, the Xalan processor would compile the
stylesheet in a very short period of time.

When I use the new Xalan 2.2 version, it takes almost a minute to compile
the same stylesheet.

Is there any reason for this ?  Am I doing something incorrectly ?  The
lines of code I am using are below.


TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource(new
File(styleSheetPath, sheetLocation)));

I would like to thank you for responding to my previous email so promptly!
Thank you in advance for helping me with this question.
                        


-----Original Message-----
From: Stephane Bailliez [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 7:18 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: xalan-j 2.2-D6



Indeed, this is probably because it needs a GNU compatible version of tar.
See http://jakarta.apache.org/ant/manual/CoreTasks/tar.html for details.

As a matter of fact, it won't work with default Solaris tar command.

So Shane recommandation is valid:
You can either upgrade your tar command or download the zip distrib.

Hope it helps,

-- 
 St�phane Bailliez 
 Software Engineer, Paris - France 
 iMediation - http://www.imediation.com 
 Disclaimer: All the opinions expressed above are mine and not those from my
company. 



> -----Original Message-----
> From: Shane Curcuru [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 06, 2001 3:58 PM
> To: [EMAIL PROTECTED]
> Subject: Re: xalan-j 2.2-D6
> 
> 
> Hmmm - this is probably because 'build dist' now
> issues a warning during the <tar> 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?
> 
> Suggestions and patches from tar or Ant experts
> welcome on a solution to this.  If you look in our
> build.xml file's dist target you'll note in previous
> releases I explicitly deleted several doc files that
> ended up being too long.  We could either expand this
> list to include the new files that are too long (but
> it'll be a maintenance pain to update) or we could...
> come up with another solution.
> 
> Sorry I'm not more help today but I'm off to the
> dentist to get a tooth fixed... ick
> 
> - Shane
> 
> ---- you "King, Jeffrey" <[EMAIL PROTECTED]> wrote
> ----
> To whom it may concern,
> 
> I downloaded the UNIX xalan-j 2.2-D6 version and tried
> to untar it, but it
> failed 
> with a check sum failure.
> 
> Can you correct the problem so I can get a working
> copy as soon as possible.
> Thanks!
> 
> =====
> <eof aka="mailto:[EMAIL PROTECTED]";
>  humor="'A Midsummer Night's Dream' - pick your quote" />
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 

Reply via email to