How to use XQuery functions from XSL?

Help
2004-11-23
2012-10-08
  • Kesav Kumar

    Kesav Kumar - 2004-11-23

    I understand XQuery and XSL uses same runtime environment. How can I invoke XQuery functions from XSL? Can any one give me a small example how to do this?

    Thanks

     
    • Michael Kay

      Michael Kay - 2004-11-23

      If you mean user-written functions written in XQuery, you can import an XQuery module into XSLT using saxon:import-query and then invoke the functions defined in that query module. The reverse isn't currently possible.

      Michael Kay

       

Log in to post a comment.