Thanks for your suggestion.
On 10/06/2011 14:40, Torsten Schassan wrote:
> Now that you want to program anyway (either to use a DTD or schema, it
> would be all the same), wouldn't it be an idea/alternative to run
> through your documents in advance and generate the DTD from what you
> find there and have an always "up-to-date" value list? If you now want
> to enter another value, Oxygen will remind you that the value has not
> been used before but then you just would save your "invalid" document,
> re-run the DTD-generating script and after that your document is
> valid. Additionally, saved away in the DTD, you can share the lists
> with others who might be interested?
> Accessing your documents with Java in run time might be time costly
> anyway so it might be faster to have such a stand-alone program/script
> and run it as described?
I've thought about this option as well, but this would require careful
instruction and assessment of computing skills since the encoders are
located elsewhere and not familiar with XML (hence the Author
environment). OTOH, if it could be done with a simple batch script
invoking an XQuery script (that doens't mess up the DTD), it could be
worth a try. Hmm, maybe there's a possibility of doing the work directly
inside eXist and using triggers to update the DTD (and backup the db)
when a document is updated. But I'd like to keep it as simple as
possible for the encoders.
> Anyway, if you progress with the programming in the Oxygen
> environment, I would be highly interested to learn about it.
Me too ;-).