You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Rolf Engesser <Ro...@metris.de> on 2000/11/09 18:24:15 UTC

StyleSheetRoot w/ StylesheetParam

Hi,

trying to use StyleSheetRoot together with StyleSheetParam
results in 'compiling?' the first Param once forever.

  XSLTProcessor processor = ...
  StyleSheetRoot stylesheet = ...

  processor.setStylesheetParam("param",
processor.createXString(CHANGING));
            stylesheet.process( processor, document, XSLTResultTarget));
            processor.reset(); // no effect

Calling sequence above with different Parameter CHANGING doesn't work
from second time on.

Please help,
Rolf

Re: StyleSheetRoot w/ StylesheetParam

Posted by Gary L Peskin <ga...@firstech.com>.
Rolf Engesser wrote:
> 
> Hi,
> 
> trying to use StyleSheetRoot together with StyleSheetParam
> results in 'compiling?' the first Param once forever.
> 
>   XSLTProcessor processor = ...
>   StyleSheetRoot stylesheet = ...
> 
>   processor.setStylesheetParam("param",
> processor.createXString(CHANGING));
>             stylesheet.process( processor, document, XSLTResultTarget));
>             processor.reset(); // no effect
> 
> Calling sequence above with different Parameter CHANGING doesn't work
> from second time on.
> 
> Please help,
> Rolf

processor.reset() was not resetting the parameters inside the
processor.  I checked in a change to CVS a few days ago that fixed
this.  You can get the source and rebuild Xalan from there and it should
fix things.  If you just want the module that I fixed, its
org.apache.xalan.xslt.XSLTEngineImpl.  I made the changes in revision
1.78.  Myriam has subsequently made changes to this module and I'm not
sure if those are stable and working so you might want to get 1.78
explicitly.  You can download it from here:

http://xml.apache.org/websrc/cvsweb.cgi/~checkout~/xml-xalan/src/org/apache/xalan/xslt/XSLTEngineImpl.java?rev=1.78&content-type=text/plain

(This URL should be on one line).

Myriam -- Is XSLTEngineImpl working properly with the changes you made
yet?

Gary