<!--
@attr foo this is the "foo" attribute
@attr bar this is the "bar" attribute
-->
<!ATTLIST foobar
foo CDATA #REQUIRED
bar CDATA #REQUIRED>
The parser does not pick up on any of this. If I move the
@attr tags into the main comment body for the element, they
are still not picked up properly.
WORKAROUND: Don't use "@attr" at all. Break each attribute
out into its own <!ATTLIST> tag and document each one
normally. The example above would have to be written as
follows:
<!--
this is the "foo" attribute
-->
<!ATTLIST foobar foo CDATA #REQUIRED>
<!--
this is the "bar" attribute
-->
<!ATTLIST foobar bar CDATA #REQUIRED>
Not being allowed to keep the abbreviated version of the
ATTLIST tag is really inconvenient and has forced me to
change a lot of DTD code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't reproduce this problem : @attr feature is a feature
introduced in version 0.0.9, that is working well as far as
I know. I tried to copy/paste your example, added the foobar
element declaration, and it works in my environment.
Could you :
- attach a complete DTD that show the problem ?
- precise which version of DTDDoc you're using ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1286587
Hit the enter button by mistake. My apologies. :)
The example I wanted to give was the following:
<!--
@attr foo this is the "foo" attribute
@attr bar this is the "bar" attribute
-->
<!ATTLIST foobar
foo CDATA #REQUIRED
bar CDATA #REQUIRED>
The parser does not pick up on any of this. If I move the
@attr tags into the main comment body for the element, they
are still not picked up properly.
WORKAROUND: Don't use "@attr" at all. Break each attribute
out into its own <!ATTLIST> tag and document each one
normally. The example above would have to be written as
follows:
<!--
this is the "foo" attribute
-->
<!ATTLIST foobar foo CDATA #REQUIRED>
<!--
this is the "bar" attribute
-->
<!ATTLIST foobar bar CDATA #REQUIRED>
Not being allowed to keep the abbreviated version of the
ATTLIST tag is really inconvenient and has forced me to
change a lot of DTD code.
Logged In: YES
user_id=449266
I can't reproduce this problem : @attr feature is a feature
introduced in version 0.0.9, that is working well as far as
I know. I tried to copy/paste your example, added the foobar
element declaration, and it works in my environment.
Could you :
- attach a complete DTD that show the problem ?
- precise which version of DTDDoc you're using ?
Logged In: YES
user_id=1286587
Can't reproduce it now. *sigh* I live in the Twilight
Zone, apparently. Sorry.