Alok,
Perhaps there's a misunderstanding here somewhere?
The DTD in question is the AI/DC Schema which Sarah has been
re-designing recently. You can see an old version of it in section
6 of here design doc, linked here:
https://securewiki.sun.com/display/install/Solaris+Install+Team+Project+Status+2010#SolarisInstallTeamProjectStatus2010-ManifestRework
For the most recent version, I think you need to check out
ssh://[email protected]/hg/caiman/caiman-docs
and look in ai_dc/.
The DTD schema does not point to any code. It defines the
structure of the XML Manifest: what elements are allowed and
what attributes they can have, etc.
Perhaps the confusion is because I have a separate dtd_file param,
which you might not have expected to see? In 'normal' use, the XML
Manifest file would have something like this at the top:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dc SYSTEM "file:///tmp/dc.dtd">
<dc>
and ManifestParser would automatically fetch the "dc.dtd" file referred to
above and use it to validate the manifest. However, it's also possible that
the manifest doesn't directly refer to a DTD but the ManifestParser user
might want to specify one to use - that's what the dtd_file param is for.
I don't want to put example XML or DTD files in my doc because I'd
have to keep updating them as Sarah's design changes, so I think it's safest
to refer to her document, where there are several examples of both.
I hope that clarifies it a bit?
- Dermot
On 06/25/10 22:30, Alok Aggarwal wrote:
Hi Dermot,
On Thu, 24 Jun 2010, Dermot McCluskey wrote:
On 06/24/10 01:51, Alok Aggarwal wrote:
Hi Dermot,
Overall looks pretty good.
Section 3.4.1.1 - What would be the format/contents
of the dtd_file here? Would they be helper methods
or something else?
It's the normal DTD schema for the manifest. The DTD file
can be specified either by being directly referenced in the headers
of the manifest (which we usually do) or as a separate, stand-alone,
file by using this param.
I'd really like to see the contents of the DTD -
would it have pointers to helper validation
methods or something else? An example in the
design doc would help clarify that.
Thanks,
Alok
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss