GithubHelp home page GithubHelp logo

xdp2xsd's Introduction

xdp2xsd

###Solving the problem of creating schemas for your LiveCycle business forms

"xdp to xsd" is a node.js command line utility that converts xdp (Adobe XFA forms) to xsd (xml schema).

####Usage $ node xdp2xsd business_form.xdp > business_form.xsd

Current limitations (see Issues...)

  • Every field transforms into xsd:String
  • No support for fragments with local overrides of forms/subforms
  • xsd is generated inline, i.e. no types/references. I find this more readable, meaning I won't fix it.
  • No master page fields yet
  • No support for explicit bindings (ref="...")

There's also an option found in the top of xdp.js: STRICT_BINDING [false]: Say you have a LiveCycle process that accepts xml data, which will eventually be merged with an xdp business form. As a consumer of that service, you probably expect being able to skip certain fields (or entire subforms for that matter) and settle for data binding of the sloppier kind.

A note on forms using fragments: make sure you apply unambiguous naming to fragments, or you will have a form repository maintenance nightmare once you start adding, removing or reordering fragments in the fragment file. (If you keep it to one fragment per fragment file, this shouldn't be an issue.) xdp2xsd does support fragment "array" references like 'form.customer_fragment[3]', but I encourage you to avoid this naming convention.

xdp2xsd uses log4js, hence you should find a xdp2xsd.log in the root directory. A tip is to do:

`$ tail -f xdp2xsd.log'

in a separate term during the conversion.

To-do

Other than the issue section:

  • Clean up
  • Write tests

Written by Christian Lagerkvist.

License

MIT

xdp2xsd's People

Contributors

lgrkvst avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

xdp2xsd's Issues

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.