Brethren
What's a smart way of annotating the meta-info in a DTD? And what CPAN modules should I use – if any?
I've got XML records for a code-inspection. They are spec'ed in a DTD. The DTD says, for instance, that
- Each Feature/Defect has
- an ID (as an attribute), plus
- multiple Inspections.
- Each inspection has
- a date (as an attribute),
- one or more reviewers, (as entities)
- one or more files. (as entities)
And so on. I want to store annotations that assert presentation data for an editing GUI like:
- 'date' should be
- Presented as 'Date:'
- Editable only by the Lead inspector
- Default to the GMT date, not the local-time date.
- 'inspector' should be
- presented as a popup menu from a list of qualified users via a call to LDAP
Clearly, this info doesn't belong
in the DTD or the XML file. I'm currently storing it an ugly HoH that I grew myself. I suspect I'm re-inventing the wheel, here. But my
Super Searching and my CPAN searching didn't turn up anything. Except a ref to
Xforms which looks like it will be what I need, someday in the future. Am I using the wrong keywords to search?
BTW, I'd convert from DTD to another form like XML-Schema or RelaxNG if that would help. But, near as I can tell, they don't separate the specification of the data from the specification of the presentation/editing of the data, either.
thanks
throop
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.