Custom TagLibrary Definition

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Custom TagLibrary Definition

    Hi,
    I have a question regarding the custom tag library deinitions of Dreamweaver 8.
    This question concerns the XML compatibility definitions auf custom tags.

    First an example of one of my custom tags.
    ----------------------------------------
    <tag name="tml_set" <b>endtag="no"</b> tagtype="empty"> <tagformat
    nlbeforetag="0" nlaftertag="0" />
    <attributes>
    <attrib name="value" type="text"/>
    <attrib name="label" type="text"/>
    </tag>
    -------------------------------------

    Now I'm looking for a way to decalre that this is a non-container-tag that
    should be closed if used in an XHTML document (<tml_set label="mylabel"
    value="myvalue" />) and should not if used in a "normal" HTML document.
    (<tml_set label="mylabel" value="myvalue">).
    I think thatr this should be done by providing the right value in the
    <b>endtag</b> attribute of the xml definition of the tag. But I don't know
    which value to use. Other examples I found used <b>endtag="xml"</b>. But this
    leads to a closing of non-container-tags regardless of the doc type of the
    current document.

    If you have any advice or experience with this kind of problem, please leave
    your reply.

    TIA,
    Marco Stoll


    Marco Stoll Guest

  2. Similar Questions and Discussions

    1. Anyone have a definition for:
      Hi deadlikeme, I just wanted to thank you for this post, it's a complete answer to something I almost pulled my hair out over. I was looking at the...
    2. definition
      I have an Olympus C-2100uz. Is this a digital slr? Thanks
    3. DataGrid Custom Column Error when DataBinding "does not contain a definition for 'DataBinding'"
      I am creating a custom column that inherits from DataColumnGrid. When I attempt Databind to a property of the custom column, I get the the error: ...
    4. Site definition for php
      I have what appears to be a functioning localhost apache / php / mysql installation, that is to say http://localhost/phpdev/phpinfo.php and...
    5. data definition
      Hi Hope someone here is able to help me. There is this particular questions which I am not sure how to go about doing it. example...
  3. #2

    Default Re: Custom TagLibrary Definition

    Marco,

    I don't think that there's a way for a DW Tag Library to control what
    type of page the user applies it on.

    The "non-container-tag" shouldn't cause any problems if it's closed on
    non-XHTML page. If so, please provide an example so we can see the whole
    picture.

    Thanks,
    Randy


    > I'm looking for a way to decalre that this is a non-container-tag that
    > should be closed if used in an XHTML document (<tml_set label="mylabel"
    > value="myvalue" />) and should not if used in a "normal" HTML document.
    > (<tml_set label="mylabel" value="myvalue">).
    Randy Edmunds Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139