On Tue, 13 Mar 2001, Tim Watts wrote:

> Hi,
> 
> We have a problem simular to this.
> 
> We are creating the xml in perl which is then passed to the Sab parser along
> with an xsl file to be parsed.
> 
> The situation is then that :
> 
> "xsl:include" which are contained in the xsl are meant to include the
> external file.
> 
> Sab processes the "string", not the file.
> 
> Sab can only process one string, not the file, so you can't have one string
> containing "xsl:include" for another string in another file.
> 
> ie process (xml, xsl) means that the xsl can only be one string and cannot
> contain refernces to other strings
> 
> You can't even reference another string by using the documet() command.
> 
> Previously we have been doing this successfully using XT and also Xalan, but
> have moved to Sabletron to take advantage of the significant speed gains
> involved in a C++ parser

?? XT is faster than Sablotron according to the XSLTMark results...

> Can anyone give some advice on how to acheive this?

If you know the strings beforehand you can pass it in to Sablotron using
the arg: scheme. If you don't know the string beforehand you can use a
scheme handler (see the docs for SHGetAll), and a custom scheme
(e.g. AxKit sets the base to axkit:/path/to/file, so that we know when
requests are for relative URIs in SHGetAll).

At least I think that's what you want to achieve, if I understood your
question right.

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\

Reply via email to