Martin,

I'm glad that you have success in using this capability.

The attached files were very helpful for review.  I'm surprised
that more extensive review was not performed by the old Xalan team.

The code example operates similar to using the XPath document
function, but uses top-level parameters with nodeset values
referencing preparsed XML documents.

The ability to use preparsed XML document fragments multiple times
within a transformation can have its performance benefits.

The example only tested a single XObjectPtr instance. A follow-up
capability that should be tested is whether the XObjectPtr
parameter value is sufficiently free of side-effects so it can
be used multiple times within a single XSLT stylesheet.

I will try to provide example documentation so this capability
can be integrated into the product for general use.  I will also
try to build some good tests for documentation purposes.

Sincerely,
Steven J. Hathaway


> I misunderstood the details!
>
> I use either the XalanDOMString or char* string to pass the parameters.
> Without code change, you would need somehow to transcode the text
> content of the XObjectPtr nodes to XalanDOMString(s). Then register
> the parameters with a new instance of XalanTransformer.  Once the
> XSLT transformation process has started, the top-level parameters
> are fixed.
>
> From within a stylesheet, you can pass parameters to templates.
> These parameters are implemented as XObjectPtr nodes.  I am
> not sure how to use XObjectPtr information outside of the
> XalanTransformer initialization process when preparing for a
> XSLT transformation.
>
> If you could share some details on how the XALANC-451 fix
> can be tested, I would be appreciative.  Otherwise, it will not
> be included into the SVN repository trunk.
>
> Steven J. Hathaway
>
>> Steven,
>>
>> I hope you don't mind me asking this 'off-list' (and if you do, I won't
>> mind if you send a reply to this email to the xalan-dev list).
>> You wrote that "Top-level parameter passing into XalanTransformer works
>> in
>> the CurrentSVN".  I'd like to know: how did you determine that?  The
>> reason I'm asking is we use that XALANC-451 fix, so when we decided to
>> update Xalan to the SVN version of around 15 March this year, I
>> personally
>> added said fix and then fixed the compile errors to get it to compile.
>> But it would be awesome if I could get that 'hand-work' out of our Xalan
>> build.  At least in the Xalan SVN version as it was on March 15, I'm not
>> seeing any XalanTransformer::setStylesheetParam member functions that
>> would appear to accept an XObjectPtr argument.  (There are only two
>> setStylesheetParam member-functions, one with two const-XalanDOMString&
>> args, and one with two const-char* args.)   Or is there a different way
>> to
>> accomplish that?  Or has new functionality been added to the SVN-version
>> after March 15?
>>
>> Sincerely,
>> Martin
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org
For additional commands, e-mail: xalan-dev-h...@xml.apache.org

Reply via email to