Re: Feature Request: question id [was Thoughts on the Way to School]
Peter Bienstman <[email protected]> Mon, 20 Oct 2003 13:21:53 +0200
| Newsgroups | gmane.comp.tools.memaid.devel |
|---|---|
| Organization | Ghent University |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 20 October 2003 11:18, Richard In Public wrote: > Hi > > Thanks to everyone who responded to my original post. Apologies for the > long break in correspondence. > > DAVE'S SUGGESTION > > Dave, the process you suggest works for me: > > 1. Run a script creating elements.txt from some source and deleting > elements.bin, if it exists, to force memaid to use the .txt file > 2. Use Memaid > 3. Convert elements.txt back into xml > > MY SETUP > > 1. I write up my lecture notes in docbook format > 2. docbook 4.2 has question and answer tags > (http://www.docbook.org/tdg/en/html/qandaset.html) > 3. I use these to markup memaid-style questions as part of these notes > 4. I've written a 'script' that extracts question/answer from a docbook > file and creates a memaid elements.txt file. > > ROUNDTRIPING > > 1. At present, the entries are exported with all memaid fields set to > [0] 2. I frequently rework my question/answers so I want persist memaid > data between exports > 3. I want to, as you suggest, create a script that exports the memaid > data into xml, but > 4. I need to update my docbook files, associating the new data with the > original question/answers > 5. To do this, I need to be able to match the original questions/answers > 6. To do this I need the elements.txt file to store an ID for each entry > 7. As elements.txt is r-written after each memaid session any fields I > add are lost > > REQUEST > > 1. Add an ID field to the elements.txt file, e.g. field > id=[contract-law-faq-19] > 2. Make this a string - 1. Flexible, 2. XML ID are required to be > strings, 3. easier to ensure unique IDs when merging multiple xml files FWIW, I'm reworking the Superkaramba client to use XML files and to add category support (which is I think similar to your id=field). I'll send out the dtd I used sometime in the next few days for feedback. Cheers, Peter - ------------------------------------------------ Peter Bienstman Ghent University, Dep. of Information Technology Sint-Pietersnieuwstraat 41, B-9000 Gent, Belgium tel: +32 9 264 34 45, fax: +32 9 264 35 93 WWW: http://photonics.intec.ugent.be email: [email protected] - ------------------------------------------------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD4DBQE/k8VR4dgPAIjyquoRAo3BAKCBK42dy7hSPBTvCt3rIy1xhE+TxQCYsgam EDbrLNX9Zeo5WfszWs7qQA== =hC/o -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com