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

give an heritage mechanism for models functions #30

Open
mingarao opened this issue Feb 10, 2015 · 5 comments
Open

give an heritage mechanism for models functions #30

mingarao opened this issue Feb 10, 2015 · 5 comments
Assignees

Comments

@mingarao
Copy link
Contributor

To do with function:lookup + config.xml

@mingarao mingarao self-assigned this Feb 10, 2015
@emchateau emchateau changed the title Heritage mechanism for models functions give an heritage mechanism for models functions Feb 10, 2015
@emchateau
Copy link
Contributor

We've tried it with @PhilPons, in a getModel function inside 'synopssx/lib/commons.xqm'.

But, it generated a FONS0004 error No namespace declared for prefix 'ampere.model.tei', as we were testing with a function-lookup if a QNamed function exists... (function-lookup only test QNames)

Have a look if it's possible to test if namespace exists before function-lookup.

@emchateau
Copy link
Contributor

unworking exemple is available at https://github.com/ANR-Ampere/synopsx/tree/dynamicmodel

ANR-Ampere@fbb863f

@emchateau
Copy link
Contributor

solved by @mingarao in 52bbda5
It suppose that user use the same naming pattern for models

@mingarao
Copy link
Contributor Author

mingarao commented Mar 5, 2015

It now works if we use default function namespaces in models modules : #56
TO DO : take arity into account

@mingarao
Copy link
Contributor Author

mingarao commented Oct 9, 2015

heritage ok but arity is not managed yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants