ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: documenting your build file
Date Thu, 19 Oct 2000 16:20:38 GMT
>>>>> "DM" == David Makower <davemak@shootinggallery.com> writes:

 DM> This poses problems if you want the build.xml file to conform to
 DM> a DTD, since it makes it difficult to define the content model of
 DM> the <doc> element.

Hmm, I think as long as you don't want to parse the content model
yourself (via XSLT) but merely extract it, you could get away with
#PCDATA.

<!ELEMENT doc (#PCDATA) >
<!ATTLIST doc type CDATA #REQUIRED>

and the have something like

<doc type="html"><![CDATA[
<p>This target does ...</p>
]]></doc>

<doc type="docbook"><![CDATA[
<para>This target does ...</para>
]]></doc>

You could then pick up the content of all doc tags with the matching
type and should be done.

Stefan

Mime
View raw message