Skip to main content
1-Visitor
June 29, 2012
Question

XSLT 2.0

  • June 29, 2012
  • 4 replies
  • 1370 views


Does anyone know if I can use an XSLT 2.0 engine in Arbortext Editor . I'm using Arbortext Editor 5.2, M050. If so, how I should replace/config the system.



Thanks,

Carolyn Helrin

    4 replies

    1-Visitor
    June 29, 2012


    The reason I ask about XSLT 2.0 is that I need to export text documents from my Arbortext document and I'm doing this using XSL. I've got my XSL so that it outputs the content in the format I want, but I need it to break the content up into multiple text documents and instead I'm getting it all in one text document.



    My understanding is that I could do this using <xsl:result-document> but this seems to be available only in XSLT 2.0, not 1.0.



    Can anyone give me a suggestion for how I can get multiple text documents (one for each instances of a certain element) out of my XML document using XSL?



    Thanks,

    Carolyn Herlin


    12-Amethyst
    June 29, 2012
    You should be able to use the EXLT extension set with 1.0 to get the result document setup you're looking for. Try this link as a start.

    Project Analyst -- Publication Systems
    Technical Publications, MS: 078
    1-Visitor
    June 29, 2012
    I believe that 5.2 included a reasonably recent version of Saxon 6, which
    claimed to support most of EXSLT, though it doesn't specifically list the
    "document" extension element.

    It does support xsl:document, which is only available if you mark your
    style sheet as being XSLT 1.1, though that's probably best avoided, as XSLT
    1.1 never saw the light of day, having been abandoned for XSLT 2.0.
    Instead, you can use saxonSmiley Surprisedutput, which has basically identical
    attributes and behavior to xsl:document and, I suspect, pretty close to the
    EXSLT version.

    All that said, one problem I've run into with generating multiple result
    documents with various XSLT engines has to do with how the engine is used
    by the application running it. Any sort of output-oriented capabilities of
    the engine require that the engine itself handles writing the results to
    disk. If the application calling it (Editor, in this case) just has the
    engine do an in-memory transformation and handles writing the results to
    disk itself, the features supported by the engine may not be available. I
    don't recall if this is an issue with Editor and may depend on how you are
    invoking the transform.

    Let us know how it goes...

    -Brandon Smiley Happy


    On Fri, Jun 29, 2012 at 4:42 PM, Hendricks Trevor <
    -> wrote:

    > You should be able to use the EXLT extension set with 1.0 to get the
    > result document setup you're looking for. Try this link as a start.****
    >
    >
    >
    > ** **
    >
    > ** **
    >
    > ** **
    >
    > *From:* Carolyn Herlin [
    1-Visitor
    July 9, 2012











    The reason I ask about XSLT 2.0 is that I need to export text documents from my Arbortext document and I'm doing this using XSL. I've got my XSL so that it outputs the content in the format I want, but I need it to break the content up into multiple text documents and instead I'm getting it all in one text document.



    My understanding is that I could do this using <xsl:result-document> but this seems to be available only in XSLT 2.0, not 1.0.



    Can anyone give me a suggestion for how I can get multiple text documents (one for each instances of a certain element) out of my XML document using XSL?



    Thanks,

    Carolyn Herlin