GithubHelp home page GithubHelp logo

alaincouthures / declarative4all Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 7.0 13.84 MB

XQuery and XForms implementations written in Javascript

License: Other

CSS 0.82% JavaScript 80.74% XSLT 4.66% HTML 12.51% XQuery 1.27%

declarative4all's People

Contributors

alaincouthures avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

declarative4all's Issues

Proposal: Separate DOM in DOM4 and Fleur enhancements

Currently Fleur implements a complete DOM parser.
I think it's a good idea to split it into a standard DOM implementation and upgrade that standard DOM implementation with Fleur enhancements.

This way when a browser is used, only the browser DOM implementation needs to be upgraded with Fleur enhancements.
In standalone mode the Fleur implementation of standard DOM is used.

A cool feature is then to update the live browser DOM and the XML level document with statements like

    replace value of node $current-field/@state with 'visited',
    replace value of node $new-field/@state with 'current',
    replace value of node $current-svg-color with 'white',
    replace value of node $new-svg-color with 'black',

Also no serialisation and parsing is needed any more.

I implemented a proof of concept of this.
Chainreaction and Boxup are two SVG games based on this proof of concept.

First an XML level is converted to an SVG XML element using XQuery. After that event handlers are added and processed by XQuery. See the javascript source in the games mentioned above.
Event handlers read and modify the model but only write to SVG

Support for xforms:copy element

Dear @AlainCouthures,
Thank you for your effort implementing XForms.

I have a question does this implementation support xforms:copy element inside xforms:select? Or the only solutions is to dispatch additional events and insert nodes explicitly? Example is described in the itemset specification

Currently when I try to do something similar what is described under the link I get: &lt;description&gt;Vanilla&lt;/description&gt; instead of <description>Vanilla</description>

Having another FLWOR expression inside 'if' fails

For example running this query inside runany.htm:

let $x := 4
return
  if ($x eq 4) then
    let $y := 5
    return $y
  else
    7

returns

18:37:54 - fn:error(fn:QName('http://www.w3.org/2005/xqt-errors', 'err:XPST0003'),'Cannot read properties of undefined (reading &apos;length&apos;)')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.