Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support simple extension functions written in JavaScript #5

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Commits on Jan 30, 2015

  1. Implement arbitrary extension functions written in JavaScript.

    For asynchroneous calls, the callbacks are performed on the main event loop
    while the worker thread is blocked on a mutex.  At the moment, only boolean,
    numeric and string values can be passed between the XSLT processor and the
    JavaScript function.  Other types would be highly desirable, but might
    require a lot more work.
    gagern committed Jan 30, 2015
    Configuration menu
    Copy the full SHA
    a3729a1 View commit details
    Browse the repository at this point in the history
  2. Close async for extension function evaluation.

    This ensures that the main event loop will terminate without a call to
    process.exit.  And it satisfies the requirement from the manual that the
    async must be closed before being deallocated.  Closing on the v8 thread
    avoids an abort when v8 itself shuts down, details unknown.
    gagern committed Jan 30, 2015
    Configuration menu
    Copy the full SHA
    9538f07 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2015

  1. Configuration menu
    Copy the full SHA
    becb3af View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2015

  1. Configuration menu
    Copy the full SHA
    cf68850 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2015

  1. Rework extensions handling.

    The core idea is that we allocate the context before we apply the
    stylesheet.  That way we can store task-specific stuff in that context, like
    the information whether we are single- or multi-threaded.  We might also be
    storing per-context functions there.
    gagern committed Apr 4, 2015
    Configuration menu
    Copy the full SHA
    3e44e2a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1894ec0 View commit details
    Browse the repository at this point in the history