From: Michael Kay <mike@sa...> - 2006-06-12 16:15:15
At present there's no URI resolver mechanism for unparsed-text().
Why don't you just write your own extension function and call it as
> -----Original Message-----
> From: saxon-help-bounces@...
> [mailto:saxon-help-bounces@...] On Behalf
> Of Peter.Rushforth@...
> Sent: 12 June 2006 16:59
> To: saxon-help@...
> Subject: [saxon] CmdURIResolver
> I wrote a CmdURIResolver to allow arbitrary commands to be
> executed by a stylesheet. (attached) I did this primarily to
> allow a stylesheet to be extracted from a database and
> included in a top-level stylesheet.
> I now need to use similar functionality to execute a
> command-line and return the results from the standard output
> to a variable, via the unparsed-text('cmd:a_program_call').
> Problem is, my CmdURIResolver is not noticed by the
> unparsed-text function and never gets invoked.
> Where should I look to plug in my CmdURIResolver?
> Cheers and thanks,