Menu

#11 Improper (or no) support for the "@attr" tag

closed-works-for-me
None
5
2006-09-06
2006-09-01
lions2912
No

According to the documentation, the following should be
legal:

<!--

Discussion

  • lions2912

    lions2912 - 2006-09-01

    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.

     
  • Herve BOUTEMY

    Herve BOUTEMY - 2006-09-01
    • assigned_to: nobody --> hboutemy
     
  • Herve BOUTEMY

    Herve BOUTEMY - 2006-09-01

    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 ?

     
  • Herve BOUTEMY

    Herve BOUTEMY - 2006-09-01
    • status: open --> open-works-for-me
     
  • lions2912

    lions2912 - 2006-09-06

    Logged In: YES
    user_id=1286587

    Can't reproduce it now. *sigh* I live in the Twilight
    Zone, apparently. Sorry.

     
  • lions2912

    lions2912 - 2006-09-06
    • status: open-works-for-me --> closed-works-for-me
     

Log in to post a comment.